From 5a44faffc83cafa66a8f1981b94cd35f6d1b7757 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 2 Oct 2018 12:07:40 -0500 Subject: [PATCH] Count points from optional pages --- course/flow.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/course/flow.py b/course/flow.py index e8a55598f..b27c70072 100644 --- a/course/flow.py +++ b/course/flow.py @@ -841,6 +841,12 @@ def gather_grade_info( optional_unknown_count += 1 continue + else: + page_points = grade.max_points*feedback.correctness + + if points is not None: + points += page_points + if feedback.correctness == 1: optional_fully_correct_count += 1 elif feedback.correctness == 0: