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: