File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments