Skip to content

Commit a270409

Browse files
authored
fix: Rename sortBy parameters option (#426)
Renamed option for sortBy parameter from "lastRunStartedAt" to "stats.lastRunStartedAt" to fit the [TICKET](https://app.zenhub.com/workspaces/platform-team-5f6454160d9f82000fa6733f/issues/gh/apify/apify-core/20997) specifications. Will merge when the [apify-core PR](apify/apify-core#21731) is deployed
1 parent cc40616 commit a270409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apify_client/clients/resource_clients/actor_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def list(
2626
limit: int | None = None,
2727
offset: int | None = None,
2828
desc: bool | None = None,
29-
sort_by: Literal['createdAt', 'lastRunStartedAt'] | None = 'createdAt',
29+
sort_by: Literal['createdAt', 'stats.lastRunStartedAt'] | None = 'createdAt',
3030
) -> ListPage[dict]:
3131
"""List the Actors the user has created or used.
3232
@@ -152,7 +152,7 @@ async def list(
152152
limit: int | None = None,
153153
offset: int | None = None,
154154
desc: bool | None = None,
155-
sort_by: Literal['createdAt', 'lastRunStartedAt'] | None = 'createdAt',
155+
sort_by: Literal['createdAt', 'stats.lastRunStartedAt'] | None = 'createdAt',
156156
) -> ListPage[dict]:
157157
"""List the Actors the user has created or used.
158158

0 commit comments

Comments
 (0)