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 descending order. Assignments with equal completion dates are sorted by IDs in ascending order.

sort = toloka.client.search_requests.AssignmentSortItems(['-submitted', 'id'])
result = toloka_client.find_assignments(status='SUBMITTED', sort=sort, limit=10)
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming