also fetch auto-approved assignments

This commit is contained in:
Ruben van de Ven 2021-08-10 13:29:21 +02:00
parent 967590981c
commit 69066588d9

View file

@ -72,7 +72,7 @@ class Connection():
logger.debug(f"Fetch results for {hit['HIT']['HITId']}") logger.debug(f"Fetch results for {hit['HIT']['HITId']}")
worker_results = self.mturk.list_assignments_for_hit( worker_results = self.mturk.list_assignments_for_hit(
HITId=hit['HIT']['HITId'], HITId=hit['HIT']['HITId'],
AssignmentStatuses=['Submitted'] AssignmentStatuses=['Submitted', 'Approved']
) )
for assignment in worker_results['Assignments']: for assignment in worker_results['Assignments']:
logger.info(f"{assignment=}") logger.info(f"{assignment=}")