AssignmentSortItems

toloka.client.search_requests.AssignmentSortItems

AssignmentSortItems(self, items=None)

Keys for sorting assignments in search results.

Parameters description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — An assignment ID.
  • 'created' — The assigning date of a task suite.
  • 'submitted' — The completion date of a task suite.
  • 'accepted' — The acceptance date of a task suite.
  • 'rejected' — The rejection date a task suite.
  • 'skipped' — The date when a task suite was skipped.
  • 'expired' — The expiration date of a task suite.

Examples:

The example shows how to find assignments sorted by the completion date in the descending order. Assignments with equal completion dates are sorted by IDs in the descending order.

sort = toloka.client.search_requests.AssignmentSortItems(['-submitted', '-id'])
result = toloka_client.find_assignments(pool_id='1080020', status='SUBMITTED', 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