PoolSortItems

toloka.client.search_requests.PoolSortItems

PoolSortItems(self, items=None)

Keys for sorting pools in search results.

Parameters description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — A pool ID.
  • 'created' — A pool creation date.
  • 'last_started' — The last opening date of a pool.

Examples:

The example shows how to find opened pools sorted by the last opening date in the descending order. Pools with equal opening dates are sorted by IDs in the ascending order.

sort = toloka.client.search_requests.PoolSortItems(['-last_started', 'id'])
result = toloka_client.find_pools(status='OPEN', sort=sort, limit=50)

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