Commit 7bf0532a by Vik Paruchuri

Fix some issues with displaying grader info on rubric

parent 41d35632
...@@ -448,7 +448,7 @@ class CombinedOpenEndedV1Module(): ...@@ -448,7 +448,7 @@ class CombinedOpenEndedV1Module():
elif task_type== "selfassessment": elif task_type== "selfassessment":
rubric_scores = last_post_assessment rubric_scores = last_post_assessment
grader_types = ['SA'] grader_types = ['SA']
feedback_items = [] feedback_items = ['']
last_post_assessment = "" last_post_assessment = ""
last_correctness = task.is_last_response_correct() last_correctness = task.is_last_response_correct()
max_score = task.max_score() max_score = task.max_score()
......
...@@ -32,7 +32,7 @@ class CombinedOpenEndedRubric(object): ...@@ -32,7 +32,7 @@ class CombinedOpenEndedRubric(object):
rubric_scores = [cat['score'] for cat in rubric_categories] rubric_scores = [cat['score'] for cat in rubric_categories]
max_scores = map((lambda cat: cat['options'][-1]['points']), rubric_categories) max_scores = map((lambda cat: cat['options'][-1]['points']), rubric_categories)
max_score = max(max_scores) max_score = max(max_scores)
html = self.system.render_template('open_ended_rubric.html', html = self.system.render_template('open_ended_rubric.html',
{'categories': rubric_categories, {'categories': rubric_categories,
'has_score': self.has_score, 'has_score': self.has_score,
'view_only': self.view_only, 'view_only': self.view_only,
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
<div class="rubric-label"> <div class="rubric-label">
${option['points']} points : ${option['text']} ${option['points']} points : ${option['text']}
</div> </div>
% elif combined_rubric == True % elif combined_rubric == True:
<div class="rubric-label"> <div class="rubric-label">
%for grader_type in option['grader_types'] %for grader_type in option['grader_types']:
${grader_type} ${grader_type}
%endfor %endfor
${option['points']} points : ${option['text']} ${option['points']} points : ${option['text']}
......
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