Commit 6ba68504 by dragonfi

Fix partial completion status for assessment

parent a08824a4
...@@ -304,7 +304,7 @@ class MentoringBlock(XBlockWithLightChildren, StepParentMixin): ...@@ -304,7 +304,7 @@ class MentoringBlock(XBlockWithLightChildren, StepParentMixin):
del child_result['tips'] del child_result['tips']
self.student_results.append([child.name, child_result]) self.student_results.append([child.name, child_result])
child.save() child.save()
completed = child_result['status'] == 'correct' completed = child_result['status']
event_data = {} event_data = {}
......
...@@ -136,7 +136,7 @@ function MentoringAssessmentView(runtime, element, mentoring) { ...@@ -136,7 +136,7 @@ function MentoringAssessmentView(runtime, element, mentoring) {
if (result.completed === 'partial') { if (result.completed === 'partial') {
checkmark.addClass('checkmark-partially-correct icon-ok fa-check'); checkmark.addClass('checkmark-partially-correct icon-ok fa-check');
} else if (result.completed) { } else if (result.completed === 'correct') {
checkmark.addClass('checkmark-correct icon-ok fa-check'); checkmark.addClass('checkmark-correct icon-ok fa-check');
} else { } else {
checkmark.addClass('checkmark-incorrect icon-exclamation fa-exclamation'); checkmark.addClass('checkmark-incorrect icon-exclamation fa-exclamation');
......
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