This commit is contained in:
John Gatward
2026-03-19 21:43:34 +00:00
parent f0a6dd85a6
commit 80a66bc44c
7 changed files with 588 additions and 317 deletions

View File

@@ -1,3 +1,13 @@
def ordinal(n):
"""Return an ordinal string for integer n, e.g. 1 → '1st', 22 → '22nd'."""
n = int(n)
if 11 <= (n % 100) <= 13:
suffix = "th"
else:
suffix = {1: "st", 2: "nd", 3: "rd"}.get(n % 10, "th")
return f"{n}{suffix}"
PLAYER_NAME_COLUMNS = [
"Ciaran",
"Jay",
@@ -8,7 +18,8 @@ PLAYER_NAME_COLUMNS = [
"Ellora",
"Chloe",
"Jamie",
"Christine"
"Christine",
"Mide",
]
FEATURE_COLUMNS = {
@@ -24,9 +35,10 @@ FEATURE_COLUMNS = {
"Ellora",
"Chloe",
"Jamie",
"Christine"
"Christine",
"Mide",
}
ATTENDANCE_COLORSCHEME = [
[0, "#E4ECF6"], [1, "#636EFA"]
[0, "#E4ECF6"], [1, "#1e3a8a"]
]