From 9be9c2d037eb31b70ffc5c69c22d820e5a8f4062 Mon Sep 17 00:00:00 2001 From: Raz Date: Mon, 19 May 2025 19:12:38 +0200 Subject: [PATCH] fix prog display --- tournaments/models/tournament.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index f08137e..2bd0ef8 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -1984,9 +1984,11 @@ class Tournament(BaseModel): sorted_days = sorted(list(days)) # Create match groups for the selected day match_groups = [] + print('sorted_days', sorted_days) - if all: - today = timezone.now().date() + if all or day is None: + today = timezone.now().replace(hour=0, minute=0, second=0, microsecond=0).date() + print('today', today) if today in days: selected_day = today else: