Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

update graderoster api to test resubmit #548

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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