File size: 706 Bytes
44e58a6 3b19a8f 44e58a6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import json
import datetime
AVAILABLE_SESSION_TYPES = [
"fp1", "fp2", "fp3", "q", "s", "ss", "sq", "r",
"practice 1", "practice 2", "practice 3", "sprint",
"sprint shootout", "sprint qualifying", "qualifying", "race"
]
DROPDOWN_SESSION_TYPES = [
"practice 1", "practice 2", "practice 3", "sprint",
"sprint shootout", "sprint qualifying", "qualifying", "race"
]
# Load in driver names
with open("assets/driver_names.json") as f:
DRIVER_NAMES: list[str] = json.load(f)["drivers"]
# Load in constructor names
with open("assets/constructors.json") as f:
CONSTRUCTOR_NAMES: list[str] = json.load(f)["constructors"]
# Variables
CURRENT_YEAR = datetime.datetime.now().year |