Spaces:
Running
Running
tracinginsights
commited on
Commit
•
7c0f0ef
1
Parent(s):
dc3f277
Update pages/Downforce_Configurations.py
Browse files
pages/Downforce_Configurations.py
CHANGED
@@ -1,36 +1,24 @@
|
|
1 |
import streamlit as st
|
2 |
from repo_directory import Downforce_levels
|
3 |
-
from repo_directory import button
|
4 |
|
5 |
|
6 |
|
7 |
# selections
|
8 |
YEAR = st.selectbox(
|
9 |
'Select Year',
|
10 |
-
(2023, 2022, 2021, 2020, 2019, 2018))
|
11 |
-
|
12 |
-
|
13 |
-
if YEAR == 2023:
|
14 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
|
15 |
-
if YEAR == 2022:
|
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 == 2021:
|
18 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
|
19 |
-
if YEAR == 2020:
|
20 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
|
21 |
-
if YEAR == 2019:
|
22 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
|
23 |
-
if YEAR == 2018:
|
24 |
-
return (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
|
25 |
|
26 |
RACE = st.selectbox(
|
27 |
'Select Race',
|
28 |
-
|
29 |
|
30 |
|
31 |
SESSION = st.selectbox(
|
32 |
'Select Session',
|
33 |
-
(
|
34 |
|
35 |
|
36 |
|
|
|
1 |
import streamlit as st
|
2 |
from repo_directory import Downforce_levels
|
3 |
+
from repo_directory import button,utils
|
4 |
|
5 |
|
6 |
|
7 |
# selections
|
8 |
YEAR = st.selectbox(
|
9 |
'Select Year',
|
10 |
+
(2024,2023, 2022, 2021, 2020, 2019, 2018))
|
11 |
+
|
12 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
RACE = st.selectbox(
|
15 |
'Select Race',
|
16 |
+
utils.get_events(YEAR))
|
17 |
|
18 |
|
19 |
SESSION = st.selectbox(
|
20 |
'Select Session',
|
21 |
+
utils.get_sessions(YEAR, RACE))
|
22 |
|
23 |
|
24 |
|