tracinginsights commited on
Commit
0094d7e
1 Parent(s): 0601886

Update pages/LapTimes_Delta.py

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