From 5e77ab9533bdb3536f38131ef5a91089909f210e Mon Sep 17 00:00:00 2001 From: Laurent Date: Sun, 28 Apr 2024 13:09:40 +0200 Subject: [PATCH] Fix team showing its weight whereas it has walked out --- tournaments/models/group_stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/models/group_stage.py b/tournaments/models/group_stage.py index e8b1430..7c2bd73 100644 --- a/tournaments/models/group_stage.py +++ b/tournaments/models/group_stage.py @@ -49,7 +49,7 @@ class GroupStage(models.Model): scores1 = ts1.scores() scores2 = ts2.scores() - if len(scores1) == len(scores2) and len(scores1) > 0: + if match.winning_team_id: for team_score in match.team_scores.all(): team_registration = team_score.team_registration