Skip to content
Snippets Groups Projects
Commit 79a0a9bf authored by Lyla Fischer's avatar Lyla Fischer
Browse files

include the final once it exists

parent 71847566
No related merge requests found
......@@ -227,8 +227,8 @@ def grade_summary_6002x(totaled_scores):
midterm_score = totaled_scores['Midterm'][0] if 'Midterm' in totaled_scores else Score('?', '?', '?', True, "?")
midterm_percentage = midterm_score.earned * 1.0 / midterm_score.possible if 'Midterm' in totaled_scores else 0
final_score = Score('?', '?', '?', True, "?")
final_percentage = 0
final_score = totaled_scores['Final'][0] if 'Final' in totaled_scores else Score('?', '?', '?', True, "?")
final_percentage = midterm_score.earned * 1.0 / midterm_score.possible if 'Midterm' in totaled_scores else 0
if settings.GENERATE_PROFILE_SCORES:
midterm_score = Score(random.randrange(50, 150), 150, True, "?")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment