Esempio n. 1
0
 def _after_save(self, original_data, instance):
     mark_if_complete(instance.task_id, instance.project_id)
     task = task_repo.get_task(instance.task_id)
     gold_answers = get_gold_answers(task)
     update_gold_stats(instance.user_id, instance.task_id, original_data,
                       gold_answers)
     update_quiz(instance.project_id, original_data['info'], gold_answers)
Esempio n. 2
0
 def _after_save(self, original_data, instance):
     mark_if_complete(instance.task_id, instance.project_id)
     update_gold_stats(instance.user_id, instance.task_id, original_data)
     update_quiz(instance.task_id, instance.project_id,
                 original_data['info'])
Esempio n. 3
0
 def _after_save(self, instance):
     after_save(instance.project_id, instance.task_id, instance.user_id)
     mark_if_complete(instance.task_id, instance.project_id)