From c9293cf950e9a0ae1bdf8f79c513e2a6e9aad648 Mon Sep 17 00:00:00 2001 From: Gokdeniz Kaymak Date: Mon, 23 Jun 2025 19:41:31 +0200 Subject: [PATCH] fix: Renamed sortBy parameters option --- src/apify_client/clients/resource_clients/actor_collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apify_client/clients/resource_clients/actor_collection.py b/src/apify_client/clients/resource_clients/actor_collection.py index accd0d24..2f91ba7b 100644 --- a/src/apify_client/clients/resource_clients/actor_collection.py +++ b/src/apify_client/clients/resource_clients/actor_collection.py @@ -26,7 +26,7 @@ def list( limit: int | None = None, offset: int | None = None, desc: bool | None = None, - sort_by: Literal['createdAt', 'lastRunStartedAt'] | None = 'createdAt', + sort_by: Literal['createdAt', 'stats.lastRunStartedAt'] | None = 'createdAt', ) -> ListPage[dict]: """List the Actors the user has created or used. @@ -152,7 +152,7 @@ async def list( limit: int | None = None, offset: int | None = None, desc: bool | None = None, - sort_by: Literal['createdAt', 'lastRunStartedAt'] | None = 'createdAt', + sort_by: Literal['createdAt', 'stats.lastRunStartedAt'] | None = 'createdAt', ) -> ListPage[dict]: """List the Actors the user has created or used.