Fix score checking, latest post assessment scraping
This commit is contained in:
@@ -157,8 +157,8 @@ class CombinedOpenEndedModule(XModule):
|
|||||||
|
|
||||||
rubric_categories = rubric_renderer.extract_categories(stringify_children(definition['rubric']))
|
rubric_categories = rubric_renderer.extract_categories(stringify_children(definition['rubric']))
|
||||||
for category in rubric_categories:
|
for category in rubric_categories:
|
||||||
if len(category['options'])>MAX_SCORE_ALLOWED:
|
if len(category['options'])>(MAX_SCORE_ALLOWED+1):
|
||||||
error_message="Number of score points in rubric higher than the max allowed, which is {0} : {1}".format(MAX_SCORE_ALLOWED, definition['rubric'])
|
error_message="Number of score points in rubric {0} higher than the max allowed, which is {1}".format(len(category['options']) , MAX_SCORE_ALLOWED)
|
||||||
log.exception(error_message)
|
log.exception(error_message)
|
||||||
raise Exception
|
raise Exception
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user