From 217982be11fe81c0b09ba156edb77d7989ec02c0 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 6 Dec 2024 15:39:25 +0100 Subject: [PATCH] fix issue --- tournaments/models/tournament.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index ebaac81..6cb17f1 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -676,9 +676,10 @@ class Tournament(models.Model): return None def round_to_show(self): + print('===== round_to_show') last_started_match = self.first_unfinished_match() - print(f'last_started_match = {last_started_match.name}') if last_started_match: + print(f'last_started_match = {last_started_match.name}') current_round = last_started_match.round.root_round() print(f'round_to_show > current_round: {current_round.name()}') if current_round: