enhanced
This commit is contained in:
@@ -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"]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user