TotalAssignmentsCount

toloka.client.conditions.TotalAssignmentsCount | Source code

TotalAssignmentsCount(
self,
operator: CompareOperator,
value: Optional[int] = None
)

The number of checked assignments out of all assignments submitted by a Toloker.

TotalAssignmentsCount is used with collectors:

Examples:

pool = toloka.client.pool.Pool()
pool.quality_control.add_action(
collector=toloka.client.collectors.AcceptanceRate(),
conditions=[
toloka.client.conditions.TotalAssignmentsCount > 10,
toloka.client.conditions.AcceptedAssignmentsRate > 90,
],
action=toloka.client.actions.SetSkill(skill_id='11294', skill_value=1)
)

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