From 68750810972d4ec4f2ec2fde9ec29539d2d709b9 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Tue, 23 Sep 2025 20:31:12 +0200 Subject: [PATCH] Fix double butterfly mode condition for rounds count --- tournaments/models/round.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/models/round.py b/tournaments/models/round.py index 2379a8c..65dda76 100644 --- a/tournaments/models/round.py +++ b/tournaments/models/round.py @@ -113,7 +113,7 @@ class Round(TournamentSubModel): def prepare_match_group(self, next_round, parent_round, loser_final, double_butterfly_mode, secondHalf): short_names = double_butterfly_mode - if double_butterfly_mode and self.tournament.rounds.count() < 3: + if double_butterfly_mode and self.tournament.rounds.filter(parent=None).count() < 3: short_names = False matches = self.matches.filter(disabled=False).order_by('index') if len(matches) == 0: