tracinginsights commited on
Commit
4f350d0
1 Parent(s): 30b48e6

Update pages/Max_Throttle.py

Browse files
Files changed (1) hide show
  1. pages/Max_Throttle.py +5 -18
pages/Max_Throttle.py CHANGED
@@ -1,36 +1,23 @@
1
  import streamlit as st
2
  from repo_directory import Max_Throttle
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
- def total_rounds(YEAR):
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
- total_rounds(YEAR))
29
 
30
 
31
  SESSION = st.selectbox(
32
  'Select Session',
33
- ('FP1', 'FP2', 'FP3', 'Q', 'SQ','SS', 'R'))
34
 
35
 
36
 
 
1
  import streamlit as st
2
  from repo_directory import Max_Throttle
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
  RACE = st.selectbox(
14
  'Select Race',
15
+ utils.get_events(YEAR))
16
 
17
 
18
  SESSION = st.selectbox(
19
  'Select Session',
20
+ utils.get_sessions(YEAR, RACE))
21
 
22
 
23