Spaces:
Running
Running
tracinginsights
commited on
Commit
·
f6c926c
1
Parent(s):
07287d2
Update pages/Downforce_Levels.py
Browse files- pages/Downforce_Levels.py +14 -2
pages/Downforce_Levels.py
CHANGED
@@ -9,9 +9,21 @@ YEAR = st.selectbox(
|
|
9 |
'Select Year',
|
10 |
(2022, 2021, 2020, 2019, 2018))
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
RACE = st.selectbox(
|
13 |
-
'Select Race',
|
14 |
-
(
|
15 |
|
16 |
|
17 |
SESSION = st.selectbox(
|
|
|
9 |
'Select Year',
|
10 |
(2022, 2021, 2020, 2019, 2018))
|
11 |
|
12 |
+
def total_rounds(YEAR):
|
13 |
+
if YEAR == 2022:
|
14 |
+
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
|
15 |
+
if YEAR == 2021:
|
16 |
+
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
|
17 |
+
if YEAR == 2020:
|
18 |
+
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
|
19 |
+
if YEAR == 2019:
|
20 |
+
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
|
21 |
+
if YEAR == 2018:
|
22 |
+
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
|
23 |
+
|
24 |
RACE = st.selectbox(
|
25 |
+
'Select Race',
|
26 |
+
total_rounds(YEAR))
|
27 |
|
28 |
|
29 |
SESSION = st.selectbox(
|