Skip to content

Commit

Permalink
fix: reset all testcase parameters when reject
Browse files Browse the repository at this point in the history
Co-Authored-By: Phan Bình Nguyên Lâm <[email protected]>
  • Loading branch information
minh-ton and LLaammTTeerr committed Apr 21, 2024
1 parent afc0ed6 commit c788d7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions judge/models/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def reject(self):
for tc in queryset:
tc.points = 0
tc.status = 'RJ'
tc.feedback = ''
tc.extended_feedback = ''
tc.time = 0
tc.memory = 0
tc.save()
self.update_contest()

Expand Down

0 comments on commit c788d7f

Please sign in to comment.