Skip to content
Snippets Groups Projects
Commit 4140b74e authored by Vik Paruchuri's avatar Vik Paruchuri
Browse files

Fix progress return

parent cee69bb7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment