tracinginsights commited on
Commit
2585fc7
1 Parent(s): ca08eb2

Update pages/Drivers_in_Traffic.py

Browse files
Files changed (1) hide show
  1. pages/Drivers_in_Traffic.py +4 -4
pages/Drivers_in_Traffic.py CHANGED
@@ -1,22 +1,22 @@
1
  import streamlit as st
2
  from repo_directory import Drivers_in_Traffic
3
- from repo_directory import button
4
 
5
  st.write('Takes more than 5 minutes.')
6
 
7
  YEAR_SELECTED = st.selectbox(
8
  'Select year',
9
- (2023, 2022, 2021, 2020, 2019, 2018))
10
 
11
 
12
 
13
  RACE_SELECTED = st.selectbox(
14
  'Select Race',
15
- (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))
16
 
17
  SESSION = st.selectbox(
18
  'Select Session',
19
- ('R', 'SQ', 'FP1', 'FP2', 'FP3', 'Q', 'SS'))
20
 
21
  laps, f1session, drivers, driver_colors = Drivers_in_Traffic.get_data(YEAR_SELECTED, RACE_SELECTED, SESSION)
22
 
 
1
  import streamlit as st
2
  from repo_directory import Drivers_in_Traffic
3
+ from repo_directory import button, utils
4
 
5
  st.write('Takes more than 5 minutes.')
6
 
7
  YEAR_SELECTED = st.selectbox(
8
  'Select year',
9
+ (2024, 2023, 2022, 2021, 2020, 2019, 2018))
10
 
11
 
12
 
13
  RACE_SELECTED = st.selectbox(
14
  'Select Race',
15
+ utils.get_events(YEAR_SELECTED))
16
 
17
  SESSION = st.selectbox(
18
  'Select Session',
19
+ utils.get_events(YEAR_SELECTED, RACE_SELECTED))
20
 
21
  laps, f1session, drivers, driver_colors = Drivers_in_Traffic.get_data(YEAR_SELECTED, RACE_SELECTED, SESSION)
22