Commit 52912715 by Vik Paruchuri

Add in some minimal checking to make sure that the max score and scores for each rubric point are 3

parent 33003e65
...@@ -141,11 +141,11 @@ class CombinedOpenEndedModule(XModule): ...@@ -141,11 +141,11 @@ class CombinedOpenEndedModule(XModule):
self._max_score = int(self.metadata.get('max_score', MAX_SCORE)) self._max_score = int(self.metadata.get('max_score', MAX_SCORE))
rubric_renderer = CombinedOpenEndedRubric(system, True) rubric_renderer = CombinedOpenEndedRubric(system, True)
try: success, rubric_feedback = rubric_renderer.render_rubric(stringify_children(definition['rubric']))
rubric_feedback = rubric_renderer.render_rubric(stringify_children(definition['rubric'])) if not success:
except RubricParsingError: error_message="Could not parse rubric : {0}".format(definition['rubric'])
log.error("Failed to parse rubric in location: {1}".format(location)) log.exception(error_message)
raise raise Exception
#Static data is passed to the child modules to render #Static data is passed to the child modules to render
self.static_data = { self.static_data = {
'max_score': self._max_score, 'max_score': self._max_score,
......
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