bracket-feature
Laurent 11 months ago
parent 21356f93ff
commit 217982be11
  1. 3
      tournaments/models/tournament.py

@ -676,9 +676,10 @@ class Tournament(models.Model):
return None return None
def round_to_show(self): def round_to_show(self):
print('===== round_to_show')
last_started_match = self.first_unfinished_match() last_started_match = self.first_unfinished_match()
print(f'last_started_match = {last_started_match.name}')
if last_started_match: if last_started_match:
print(f'last_started_match = {last_started_match.name}')
current_round = last_started_match.round.root_round() current_round = last_started_match.round.root_round()
print(f'round_to_show > current_round: {current_round.name()}') print(f'round_to_show > current_round: {current_round.name()}')
if current_round: if current_round:

Loading…
Cancel
Save