tracinginsights commited on
Commit
81f934b
1 Parent(s): 24f4a92

Update pages/Drivers_in_Traffic.py

Browse files
Files changed (1) hide show
  1. pages/Drivers_in_Traffic.py +2 -2
pages/Drivers_in_Traffic.py CHANGED
@@ -18,13 +18,13 @@ SESSION = st.selectbox(
18
  'Select Session',
19
  ('R', 'SQ', 'FP1', 'FP2', 'FP3', 'Q', 'SS'))
20
 
21
- laps, f1session, drivers = Drivers_in_Traffic.get_data(YEAR_SELECTED, RACE_SELECTED, SESSION)
22
 
23
  DRIVERS_SELECTED = st.multiselect(
24
  'Select Drivers',
25
  drivers,
26
  )
27
 
28
- tel = Drivers_in_Traffic.get_tel(laps)
29
 
30
  Drivers_in_Traffic.plot(tel, DRIVERS_SELECTED)
 
18
  'Select Session',
19
  ('R', 'SQ', 'FP1', 'FP2', 'FP3', 'Q', 'SS'))
20
 
21
+ laps, f1session, drivers, driver_colors = Drivers_in_Traffic.get_data(YEAR_SELECTED, RACE_SELECTED, SESSION)
22
 
23
  DRIVERS_SELECTED = st.multiselect(
24
  'Select Drivers',
25
  drivers,
26
  )
27
 
28
+ tel = Drivers_in_Traffic.get_tel(laps, driver_colors)
29
 
30
  Drivers_in_Traffic.plot(tel, DRIVERS_SELECTED)