Skip to content

Commit

Permalink
fix: fix a minor bug in calculating user completed participations
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem authored Nov 21, 2024
1 parent 3c1b7d7 commit e2a5766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/fsm/views/fsm_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def enter_fsm(self, request, pk=None):
raise PermissionDenied(
"You must be logged in to submit this form.")
else:
count = get_players(user, fsm).count()
count = get_players(user, fsm).filter(finished_at__isnull=False).count()
if count >= fsm.participant_limit:
raise PermissionDenied(
"You have exceeded the submission limit for this form.")
Expand Down

0 comments on commit e2a5766

Please sign in to comment.