add more logs

bracket-feature
Laurent 11 months ago
parent 4fbbda02e2
commit 21356f93ff
  1. 1
      tournaments/models/tournament.py

@ -677,6 +677,7 @@ class Tournament(models.Model):
def round_to_show(self): def round_to_show(self):
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:
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()}')

Loading…
Cancel
Save