Commit 4140b74e by Vik Paruchuri

Fix progress return

parent cee69bb7
......@@ -613,9 +613,7 @@ class CombinedOpenEndedModule(XModule):
If this module has no notion of progress, return None.
'''
progress_object = None
if (self.state == self.DONE or self.allow_reset) and self.is_scored:
score_dict = self.get_score()
progress_object = Progress(score_dict['score'], score_dict['total'])
progress_object = Progress(self.current_task_number, len(self.task_xml))
return progress_object
......
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