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

Update pages/Download_Raw_Data.py

Browse files
Files changed (1) hide show
  1. pages/Download_Raw_Data.py +4 -1
pages/Download_Raw_Data.py CHANGED
@@ -14,4 +14,7 @@ SESSION = st.selectbox(
14
  'Select Session',
15
  ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
16
 
17
- dl.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
 
 
 
 
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')