tracinginsights commited on
Commit
b0d2f87
1 Parent(s): 56efb03

Update pages/Download_Raw_Data.py

Browse files
Files changed (1) hide show
  1. pages/Download_Raw_Data.py +2 -1
pages/Download_Raw_Data.py CHANGED
@@ -14,7 +14,8 @@ SESSION = st.selectbox(
14
  'Select Session',
15
  ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
16
 
17
- dl.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
 
18
 
19
  with open(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv') as f:
20
  st.download_button('Click to Download LapTimes Data', f, file_name=f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')
 
14
  'Select Session',
15
  ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
16
 
17
+ laps = dl.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
18
+ laps.to_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')
19
 
20
  with open(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv') as f:
21
  st.download_button('Click to Download LapTimes Data', f, file_name=f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')