Skip to content

Commit

Permalink
Fix validation formula
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Nov 29, 2023
1 parent 9f1d135 commit f74219d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insalan/tournament/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def refresh_validation(self):

threshold = ceil((game.get_players_per_team()+1)/2)

paid_seats = len(players.exclude(payment_status=PaymentStatus.NOT_PAID))
paid_seats = len(players.filter(payment_status=PaymentStatus.PAID))

self.validated = paid_seats >= threshold
self.save()
Expand Down

0 comments on commit f74219d

Please sign in to comment.