Skip to content

Commit 946d0d6

Browse files
committed
async list sortBy
1 parent 51a2105 commit 946d0d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apify_client/clients/resource_clients/actor_collection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +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",
155156
) -> ListPage[dict]:
156157
"""List the Actors the user has created or used.
157158
@@ -166,7 +167,7 @@ async def list(
166167
Returns:
167168
The list of available Actors matching the specified filters.
168169
"""
169-
return await self._list(my=my, limit=limit, offset=offset, desc=desc)
170+
return await self._list(my=my, limit=limit, offset=offset, desc=desc, sortBy=sort_by)
170171

171172
async def create(
172173
self,

0 commit comments

Comments
 (0)