Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order Euro 2024 spider chart (almost) correctly #27216

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 54 additions & 15 deletions sport/app/football/model/CompetitionStages.scala
Original file line number Diff line number Diff line change
Expand Up @@ -205,21 +205,60 @@ object KnockoutSpider {
// Euro 2024
// https://www.uefa.com/euro2024/news/0275-151eb1c333ea-d30deec67b13-1000--uefa-euro-2024-fixtures-when-and-where-are-the-matches/
"750" -> List(
ZonedDateTime.of(2024, 6, 30, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Round of 16 // Match 40
ZonedDateTime.of(2024, 6, 29, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Round of 16 // Match 38
ZonedDateTime.of(2024, 7, 1, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Round of 16 // Match 42
ZonedDateTime.of(2024, 7, 1, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Round of 16 // Match 41
ZonedDateTime.of(2024, 7, 2, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Round of 16 // Match 44
ZonedDateTime.of(2024, 7, 2, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Round of 16 // Match 43
ZonedDateTime.of(2024, 6, 30, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Round of 16 // Match 39
ZonedDateTime.of(2024, 6, 29, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Round of 16 // Match 37
ZonedDateTime.of(2024, 7, 5, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Quarter Final // Match 46
ZonedDateTime.of(2024, 7, 5, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Quarter Final // Match 45
ZonedDateTime.of(2024, 7, 6, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Quarter Final // Match 48
ZonedDateTime.of(2024, 7, 6, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Quarter Final // Match 47
ZonedDateTime.of(2024, 7, 9, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Semi-Final // Match 49
ZonedDateTime.of(2024, 7, 10, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Semi-Final // Match 50
ZonedDateTime.of(2024, 7, 14, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Final // Match 51
// Round of 16
//
// 1 ━┓ ┏━ 5
// ┣━━━┓ ┏━━━┫
// 2 ━┛ ┃ ┃ ┗━ 6
// ┣━━━┫
// 3 ━┓ ┃ ┃ ┏━ 7
// ┣━━━┛ ┗━━━┫
// 4 ━┛ ┗━ 8
Comment on lines +208 to +216
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

ZonedDateTime.of(2024, 6, 29, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Match 38
ZonedDateTime.of(2024, 6, 30, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Match 40
ZonedDateTime.of(2024, 7, 1, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 41
ZonedDateTime.of(2024, 7, 1, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Match 42
ZonedDateTime.of(2024, 6, 30, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 39
ZonedDateTime.of(2024, 6, 29, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 37
ZonedDateTime.of(2024, 7, 2, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Match 43
ZonedDateTime.of(2024, 7, 2, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 44

// Quarter Final
//
// ━┓ ┏━
// ┣━ 1 ━┓ ┏━ 3 ━┫
// ━┛ ┃ ┃ ┗━
// ┣━━━┫
// ━┓ ┃ ┃ ┏━
// ┣━ 2 ━┛ ┗━ 4 ━┫
// ━┛ ┗━
ZonedDateTime.of(2024, 7, 6, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Match 48
ZonedDateTime.of(2024, 7, 5, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 46
ZonedDateTime.of(2024, 7, 5, 17, 0, 0, 0, ZoneId.of("Europe/London")), // Match 45
ZonedDateTime.of(2024, 7, 6, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 47

// Semi-Final
//
// ━┓ ┏━
// ┣━━┓ ┏━━┫
// ━┛ ┃ ┃ ┗━
// ┣━ 1 ━━ 2 ━┫
// ━┓ ┃ ┃ ┏━
// ┣━━┛ ┗━━┫
// ━┛ ┗━
ZonedDateTime.of(2024, 7, 10, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 50
ZonedDateTime.of(2024, 7, 9, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 49

// Final
//
// ━┓ ┏━
// ┣━━┓ ┏━━┫
// ━┛ ┃ ┃ ┗━
// ┣━━ 1 ━━┫
// ━┓ ┃ ┃ ┏━
// ┣━━┛ ┗━━┫
// ━┛ ┗━
ZonedDateTime.of(2024, 7, 14, 20, 0, 0, 0, ZoneId.of("Europe/London")), // Match 51
),
// Womens Euro 2022
"423" -> List(
Expand Down
1 change: 1 addition & 0 deletions sport/app/football/model/model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ object CompetitionDisplayHelpers {
teamName
.replace("Czech Republic", "Czech Rep.")
.replace("Holland", "Netherlands")
.replace("Winner of Match", "Winner match")
}

// We do not currently support scores above 10 so we default to a max
Expand Down