From 406786478b87940ba36c3b4c466cffe6ca60158c Mon Sep 17 00:00:00 2001 From: Raz Date: Mon, 19 May 2025 18:59:47 +0200 Subject: [PATCH] fix prog display --- tournaments/models/tournament.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 6bfda30..f08137e 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -1984,12 +1984,11 @@ class Tournament(BaseModel): sorted_days = sorted(list(days)) # Create match groups for the selected day match_groups = [] - print(days) if all: today = timezone.now().date() - if today not in days: - selected_day = sorted_days[0] if sorted_days else None + if today in days: + selected_day = today else: # Default to first day if today is not in the list if self.has_ended():