fix prog display

sync_v2
Raz 6 months ago
parent df245c55d4
commit 406786478b
  1. 5
      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():

Loading…
Cancel
Save