Skip to content

Commit a213207

Browse files
committed
docs: improved comment
1 parent 71a6abe commit a213207

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lms/djangoapps/grades/subsection_grade.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ def show_grades(self, has_staff_access):
6060
Returns whether subsection scores are currently available to users with or without staff access.
6161
"""
6262
if self.show_correctness == ShowCorrectness.NEVER_BUT_INCLUDE_GRADE:
63+
# show_grades fn is used to determine if the grade should be included in final calculation.
6364
# For NEVER_BUT_INCLUDE_GRADE, show_grades returns True if the due date has passed,
64-
# but correctness_available returns False.
65+
# but correctness_available always returns False as we do not want to show correctness
66+
# of problems to the users.
6567
return (self.due is None or
6668
self.due < datetime.now(timezone.utc))
6769
return ShowCorrectness.correctness_available(self.show_correctness, self.due, has_staff_access)

0 commit comments

Comments
 (0)