diff --git a/common/lib/xmodule/xmodule/self_assessment_module.py b/common/lib/xmodule/xmodule/self_assessment_module.py index 46bfcc8aa1..699cd0f9ac 100644 --- a/common/lib/xmodule/xmodule/self_assessment_module.py +++ b/common/lib/xmodule/xmodule/self_assessment_module.py @@ -112,7 +112,7 @@ class SelfAssessmentModule(XModule): # Used for progress / grading. Currently get credit just for # completion (doesn't matter if you self-assessed correct/incorrect). - self._max_score = instance_state.get('max_score', MAX_SCORE) + self._max_score = int(self.metadata.get('max_score', MAX_SCORE)) self.attempts = instance_state.get('attempts', 0) @@ -137,7 +137,6 @@ class SelfAssessmentModule(XModule): 'initial_message': self.get_message_html(), 'state': self.state, 'allow_reset': allow_reset, - 'max_score' : self._max_score, } html = self.system.render_template('self_assessment_prompt.html', context) @@ -225,7 +224,9 @@ class SelfAssessmentModule(XModule): return '' # we'll render it - context = {'rubric': self.rubric} + context = {'rubric': self.rubric, + 'max_score' : self._max_score, + } if self.state == self.ASSESSING: context['read_only'] = False diff --git a/lms/templates/self_assessment_rubric.html b/lms/templates/self_assessment_rubric.html index 479c19a027..5bcb3bba93 100644 --- a/lms/templates/self_assessment_rubric.html +++ b/lms/templates/self_assessment_rubric.html @@ -6,8 +6,9 @@ % if not read_only: % endif