tracinginsights commited on
Commit
9c502bd
1 Parent(s): ba01174

Update pages/Fastest_Lap.py

Browse files
Files changed (1) hide show
  1. pages/Fastest_Lap.py +3 -3
pages/Fastest_Lap.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
  from repo_directory import Fastest_Lap
3
- from repo_directory import button
4
 
5
 
6
  YEAR_SELECTED = st.selectbox(
@@ -9,11 +9,11 @@ YEAR_SELECTED = st.selectbox(
9
 
10
  RACE_SELECTED = st.selectbox(
11
  'Select Race',
12
- (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))
13
 
14
  SESSION = st.selectbox(
15
  'Select Session',
16
- ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
17
 
18
 
19
  df, f1session, total_time, driver = Fastest_Lap.get_fastest_laps(YEAR_SELECTED,RACE_SELECTED, SESSION )
 
1
  import streamlit as st
2
  from repo_directory import Fastest_Lap
3
+ from repo_directory import button, utils
4
 
5
 
6
  YEAR_SELECTED = st.selectbox(
 
9
 
10
  RACE_SELECTED = st.selectbox(
11
  'Select Race',
12
+ utils.get_events(YEAR_SELECTED))
13
 
14
  SESSION = st.selectbox(
15
  'Select Session',
16
+ utils.get_sessions(YEAR_SELECTED, RACE_SELECTED))
17
 
18
 
19
  df, f1session, total_time, driver = Fastest_Lap.get_fastest_laps(YEAR_SELECTED,RACE_SELECTED, SESSION )