Skip to content

Commit

Permalink
update graderoster api to test resubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaney committed Feb 14, 2025
1 parent 53ce216 commit 1bb8171
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions course_grader/views/api/graderoster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="-")
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1bb8171

Please # to comment.