Commit 9b0e00ef by kimth

Log both grading and queueing

parent 934b37c1
...@@ -434,11 +434,11 @@ class CapaModule(XModule): ...@@ -434,11 +434,11 @@ class CapaModule(XModule):
if not correct_map.is_correct(answer_id): if not correct_map.is_correct(answer_id):
success = 'incorrect' success = 'incorrect'
# log this in the track_function, ONLY if a full grading has been performed (e.g. not queueing) # NOTE: We are logging both full grading and queued-grading submissions. In the latter,
if not self.lcp.is_queued(): # 'success' will always be incorrect
event_info['correct_map'] = correct_map.get_dict() event_info['correct_map'] = correct_map.get_dict()
event_info['success'] = success event_info['success'] = success
self.system.track_function('save_problem_check', event_info) self.system.track_function('save_problem_check', event_info)
# render problem into HTML # render problem into HTML
html = self.get_problem_html(encapsulate=False) html = self.get_problem_html(encapsulate=False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment