Commit af20c12a by Bridger Maxwell

Rounding the grade before it is passed around. Then a student who is at 59.6 is…

Rounding the grade before it is passed around. Then a student who is at 59.6 is still passing the class.
parent 47159799
......@@ -87,6 +87,10 @@ def grade_sheet(student):
grader = course_settings.GRADER
grade_summary = grader.grade(totaled_scores)
# We round the grade here, to make sure that the grade is an whole percentage and
# doesn't get displayed differently than it gets grades
grade_summary['percent'] = round(grade_summary['percent'] * 100 + 0.05) / 100
letter_grade = grade_for_percentage(grade_summary['percent'])
return {'courseware_summary' : chapters,
......
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