|
|
|
@ -2212,7 +2212,7 @@ class Tournament(BaseModel): |
|
|
|
# Group matches by hour |
|
|
|
# Group matches by hour |
|
|
|
matches_by_hour = {} |
|
|
|
matches_by_hour = {} |
|
|
|
for match in matches_by_day[selected_day]: |
|
|
|
for match in matches_by_day[selected_day]: |
|
|
|
local_time = timezone.localtime(match.planned_start_date) |
|
|
|
local_time = match.local_planned_start_date() |
|
|
|
hour_key = local_time.strftime('%H:%M') |
|
|
|
hour_key = local_time.strftime('%H:%M') |
|
|
|
|
|
|
|
|
|
|
|
if hour_key not in matches_by_hour: |
|
|
|
if hour_key not in matches_by_hour: |
|
|
|
|