From 36e791efe92286a591e09f03c2c433d3e3bd8265 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Sat, 19 Jul 2025 09:17:47 +0200 Subject: [PATCH] Fix tournament display matches logic --- tournaments/models/tournament.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 34525c9..be6abc4 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -958,11 +958,11 @@ class Tournament(BaseModel): def display_matches(self): if self.end_date is not None: return True + if self.publish_brackets: + return True bracket_matches = self.bracket_matches() if len(bracket_matches) == 0: return self.display_group_stages() - if self.publish_brackets: - return True first_match_start_date = self.first_match_start_date(bracket_matches) if first_match_start_date is None: