From f3ba9d4fc9a3d7b8d7de4ee9b4db055cb9941241 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Sat, 19 Jul 2025 09:19:52 +0200 Subject: [PATCH] Reorder conditions in display_matches method for clarity --- 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 be6abc4..34525c9 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: