|
|
|
@ -2049,7 +2049,7 @@ class Tournament(BaseModel): |
|
|
|
# Sort matches by court if available |
|
|
|
# Sort matches by court if available |
|
|
|
matches.sort(key=lambda m: (m.court_index if m.court_index is not None else 999)) |
|
|
|
matches.sort(key=lambda m: (m.court_index if m.court_index is not None else 999)) |
|
|
|
|
|
|
|
|
|
|
|
local_date = matches[0].local_start_date() |
|
|
|
local_date = matches[0].local_planned_start_date() |
|
|
|
formatted_name = formats.date_format(local_date, format='l j F à H:i').capitalize() |
|
|
|
formatted_name = formats.date_format(local_date, format='l j F à H:i').capitalize() |
|
|
|
mg = self.create_match_group( |
|
|
|
mg = self.create_match_group( |
|
|
|
name=formatted_name, |
|
|
|
name=formatted_name, |
|
|
|
|