TrainingSortItems

toloka.client.search_requests.TrainingSortItems

TrainingSortItems(self, items=None)

Keys for sorting training pools in search results.

Parameters Description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

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

Examples:

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

sort = toloka.client.search_requests.TrainingSortItems(['-last_started', 'id'])
result = toloka_client.find_trainings(status='OPEN', sort=sort, limit=50)
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming