tracinginsights commited on
Commit
ca08eb2
1 Parent(s): 7c0f0ef

Update pages/Download_Raw_Data.py

Browse files
Files changed (1) hide show
  1. pages/Download_Raw_Data.py +4 -4
pages/Download_Raw_Data.py CHANGED
@@ -1,19 +1,19 @@
1
  import streamlit as st
2
  from repo_directory import Download_Raw_Data as dl
3
- from repo_directory import button
4
  import pandas as pd
5
 
6
  YEAR_SELECTED = st.selectbox(
7
  'Select Year',
8
- (2023, 2022, 2021, 2020, 2019, 2018))
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
  laps, drivers_list, weather = dl.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
19
  laps.to_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')
 
1
  import streamlit as st
2
  from repo_directory import Download_Raw_Data as dl
3
+ from repo_directory import button, utils
4
  import pandas as pd
5
 
6
  YEAR_SELECTED = st.selectbox(
7
  'Select Year',
8
+ (2024,2023, 2022, 2021, 2020, 2019, 2018))
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
  laps, drivers_list, weather = dl.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
19
  laps.to_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')