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)) sorted_days = sorted(list(days))
# Create match groups for the selected day # Create match groups for the selected day
match_groups = [] match_groups = []
print(days)
if all: if all:
today = timezone.now().date() today = timezone.now().date()
if today not in days: if today in days:
selected_day = sorted_days[0] if sorted_days else None selected_day = today
else: else:
# Default to first day if today is not in the list # Default to first day if today is not in the list
if self.has_ended(): if self.has_ended():

Loading…
Cancel
Save