Fix double butterfly mode condition for rounds count

mailing
Razmig Sarkissian 2 months ago
parent ad6139852d
commit 6875081097
  1. 2
      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:

Loading…
Cancel
Save