Skip to content

Commit

Permalink
fix: Correct participant query to include contest filter in counter h…
Browse files Browse the repository at this point in the history
…andler
  • Loading branch information
albertoleoncio committed Oct 31, 2024
1 parent a41ec59 commit c2238c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contests/handlers/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def reset_participant(self, request):
participant_id = request.POST.get('user_id')
participant = Edit.objects.filter(
contest=self.contest,
participant=Participant.objects.get(local_id=participant_id)
participant=Participant.objects.get(contest=self.contest, local_id=participant_id)
).update(last_evaluation=None)
return True if participant.count() > 0 else False

0 comments on commit c2238c3

Please sign in to comment.