reenable psychometrics for regrading

This commit is contained in:
Brian Wilson
2013-05-28 14:07:04 -04:00
parent 3b657d6d36
commit c1fff1568e

View File

@@ -887,9 +887,9 @@ class CapaModule(CapaFields, XModule):
event_info['attempts'] = self.attempts
self.system.track_function('problem_regrade', event_info)
# TODO: figure out if psychometrics should be called on regrading requests
# if hasattr(self.system, 'psychometrics_handler'): # update PsychometricsData using callback
# self.system.psychometrics_handler(self.get_state_for_lcp())
# psychometrics should be called on regrading requests in the same way as check-problem
if hasattr(self.system, 'psychometrics_handler'): # update PsychometricsData using callback
self.system.psychometrics_handler(self.get_state_for_lcp())
return {'success': success}