Commit 3559a127 by Xavier Antoviaque

Merge pull request #56 from edx-solutions/assessment-rounded-percentage

assessment-rounded-percentage: Round score result in assessments
parents 70ec8eb4 a189a3ad
......@@ -110,7 +110,7 @@ class MentoringBlock(XBlockWithLightChildren):
correct = sum(1 for r in self.student_results if r[1]['completed'] == True)
incorrect = sum(1 for r in self.student_results if r[1]['completed'] == False)
return (score, float('%0.2f' % (score*100,)), correct, incorrect)
return (score, int(round(score*100)), correct, incorrect)
def student_view(self, context):
fragment, named_children = self.get_children_fragment(
......
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