diff --git a/course_grader/views/api/graderoster.py b/course_grader/views/api/graderoster.py index 335689f..a737f96 100644 --- a/course_grader/views/api/graderoster.py +++ b/course_grader/views/api/graderoster.py @@ -143,8 +143,7 @@ def put(self, request, *args, **kwargs): secondary_section.section_id != item.section_id): continue - if (item_is_submitted(item) or item.is_auditor or - item.date_withdrawn is not None): + if item.is_auditor or item.date_withdrawn is not None: continue student_id = item.student_label(separator="-") @@ -173,8 +172,7 @@ def post(self, request, *args, **kwargs): secondary_section.section_id != item.section_id): continue - if (item_is_submitted(item) or item.is_auditor or - item.date_withdrawn is not None): + if (item.is_auditor or item.date_withdrawn is not None): continue unsubmitted_count += 1 @@ -336,7 +334,7 @@ def response_content(self, **kwargs): withdrawn_week = m.group("week") grade = "" - elif grading_period_open and not item.is_auditor: + if grading_period_open and not item.is_auditor: grade_url = url_for_graderoster(section_id) # Use an existing grade_choices list, or add this one