AttachmentSortItems

toloka.client.search_requests.AttachmentSortItems

AttachmentSortItems(self, items=None)

Keys for sorting attachments in search results.

Parameters description

ParametersTypeDescription
itemsOptional[List[SortItem]]

A list of sorting keys. Supported values:

  • 'id' — The ID of an attachment.
  • 'created' — The date of uploading an attachment.

Examples:

The example shows how to find attachments sorted by uploading date in the descending order. Attachments with equal uploading dates are sorted by IDs in the descending order.

sort = toloka.client.search_requests.AttachmentSortItems(['-created', '-id'])
result = toloka_client.find_attachments(pool_id='1086170', 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