From 9b0e00efa2bd38c408120459ee1607c54ccf7614 Mon Sep 17 00:00:00 2001 From: kimth Date: Tue, 17 Jul 2012 14:41:52 -0400 Subject: [PATCH] Log both grading and queueing --- common/lib/xmodule/xmodule/capa_module.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index ba72ad1446..802a7c4895 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -434,11 +434,11 @@ class CapaModule(XModule): if not correct_map.is_correct(answer_id): success = 'incorrect' - # log this in the track_function, ONLY if a full grading has been performed (e.g. not queueing) - if not self.lcp.is_queued(): - event_info['correct_map'] = correct_map.get_dict() - event_info['success'] = success - self.system.track_function('save_problem_check', event_info) + # NOTE: We are logging both full grading and queued-grading submissions. In the latter, + # 'success' will always be incorrect + event_info['correct_map'] = correct_map.get_dict() + event_info['success'] = success + self.system.track_function('save_problem_check', event_info) # render problem into HTML html = self.get_problem_html(encapsulate=False)