OperationSortItems

toloka.client.search_requests.OperationSortItems

OperationSortItems(self, items=None)

Keys for sorting operations in search results.

Parameters description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — Operation ID.
  • 'submitted' — The date and time when the request was sent.
  • 'finished' — The date and time when the operation was finished.

Examples:

The example shows how to find operations sorted by finish date in the descending order. Operations with equal finish dates are sorted by IDs in the ascending order.

sort = toloka.client.search_requests.OperationSortItems(['-finished', 'id'])
result = toloka_client.find_operations(type='POOL.OPEN', status='SUCCESS', sort=sort, limit=10)

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming