toloka.client.collectors.AnswerCount | Source code
AnswerCount(self, *, uuid: Optional[UUID] = None)
Counts assignments submitted by a Toloker.
Collector use cases.
The collector can be used with conditions:
The collector can be used with actions:
The ID of a collector. Note that when you clone a pool, both pools start using the same collector, because it is not cloned. Usually, it is not an intended behavior. For example, in this case one collector gathers history size from both pools.
The example shows how to mark Tolokers completing any task in the pool so that you can filter them later in the checking project.
new_pool = toloka.pool.Pool(....)new_pool.quality_control.add_action(collector=toloka.collectors.AnswerCount(),conditions=[toloka.conditions.AssignmentsAcceptedCount > 0],action=toloka.actions.SetSkill(skill_id=some_skill_id, skill_value=1),)