From b7a844a32d779212a9d34bab8bf7ac7e2d90eb8a Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 6 Dec 2024 16:07:16 +0100 Subject: [PATCH] add logs --- tournaments/models/tournament.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index af5d720..38b1d39 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -688,7 +688,9 @@ class Tournament(models.Model): # all started matches have ended, possibly last_finished_match = self.last_finished_match() + print(f'last_finished_match = {last_finished_match.name}') round_index = last_finished_match.round.index + print(f'round_index = {round_index}') if round_index == 0: return last_finished_match.round else: