TaskSuiteSortItems

toloka.client.search_requests.TaskSuiteSortItems

TaskSuiteSortItems(self, items=None)

Keys for sorting task suites in search results.

Parameters Description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — The ID of a task suite.
  • 'created' — The creation date of a task suite.

Examples:

The example shows how to find task suites sorted by the creation date in descending order. Task suites with equal creation dates are sorted by IDs in ascending order.

sort = toloka.client.search_requests.TaskSuiteSortItems(['-created', 'id'])
result = toloka_client.find_task_suites(pool_id=my_pool_id, sort=sort, limit=10)
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming