45 lines
740 B
Python
45 lines
740 B
Python
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",
|
|
"Sam",
|
|
"Drew",
|
|
"Theo",
|
|
"Tom",
|
|
"Ellora",
|
|
"Chloe",
|
|
"Jamie",
|
|
"Christine",
|
|
"Mide",
|
|
]
|
|
|
|
FEATURE_COLUMNS = {
|
|
"Number of Players",
|
|
"Number of Teams",
|
|
"Points on Scattergories",
|
|
"Ciaran",
|
|
"Jay",
|
|
"Sam",
|
|
"Drew",
|
|
"Theo",
|
|
"Tom",
|
|
"Ellora",
|
|
"Chloe",
|
|
"Jamie",
|
|
"Christine",
|
|
"Mide",
|
|
}
|
|
|
|
ATTENDANCE_COLORSCHEME = [
|
|
[0, "#E4ECF6"], [1, "#1e3a8a"]
|
|
]
|