|
|
|
|
@ -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: |
|
|
|
|
|