OperationSortItems
toloka.client.search_requests.OperationSortItems
OperationSortItems(self, items=None)
Keys for sorting operations in search results.
Parameters Description
Parameters | Type | Description |
---|---|---|
items |
Optional[List[SortItem]] | A list of sorting keys. Supported values:
|
Examples:
The example shows how to find operations sorted by finish date in descending order. Operations with equal finish dates are sorted by IDs in ascending order.
sort = toloka.client.search_requests.OperationsSearchRequest(['-finished', 'id'])
result = toloka_client.find_operations(type='POOL_OPEN', status='SUCCESS', sort=sort, limit=10)