James McCool commited on
Commit
dc913ed
·
1 Parent(s): 20f53c3

Reorganize tab2 data loading and expander layout

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -313,7 +313,7 @@ with st.sidebar:
313
 
314
  with tab1:
315
 
316
- with st.expander("Display Options"):
317
  with st.container():
318
  st.info("Advanced view includes all stats and thresholds, simple includes just basic columns for ease of use on mobile")
319
  with st.container():
@@ -416,16 +416,16 @@ with tab1:
416
  )
417
 
418
  with tab2:
419
- if st.button("Load/Reset Data", key='reset2'):
420
- st.cache_data.clear()
421
- dk_raw, fd_raw, dk_raw_sec, fd_raw_sec, roo_raw, timestamp, roo_backlog = load_overall_stats()
422
- dk_lineups = init_DK_lineups()
423
- fd_lineups = init_FD_lineups()
424
- t_stamp = f"Last Update: " + str(timestamp) + f" CST"
425
- for key in st.session_state.keys():
426
- del st.session_state[key]
427
-
428
- with st.expander("Data Options"):
429
  col1, col2, col3, col4, col5 = st.columns(5)
430
  with col1:
431
  slate_var1 = st.radio("Which data are you loading?", ('Main Slate', 'Just the Main Slate'))
 
313
 
314
  with tab1:
315
 
316
+ with st.expander("Info and Filters"):
317
  with st.container():
318
  st.info("Advanced view includes all stats and thresholds, simple includes just basic columns for ease of use on mobile")
319
  with st.container():
 
416
  )
417
 
418
  with tab2:
419
+ with st.expander("Info and Filters"):
420
+ if st.button("Load/Reset Data", key='reset2'):
421
+ st.cache_data.clear()
422
+ dk_raw, fd_raw, dk_raw_sec, fd_raw_sec, roo_raw, timestamp, roo_backlog = load_overall_stats()
423
+ dk_lineups = init_DK_lineups()
424
+ fd_lineups = init_FD_lineups()
425
+ t_stamp = f"Last Update: " + str(timestamp) + f" CST"
426
+ for key in st.session_state.keys():
427
+ del st.session_state[key]
428
+
429
  col1, col2, col3, col4, col5 = st.columns(5)
430
  with col1:
431
  slate_var1 = st.radio("Which data are you loading?", ('Main Slate', 'Just the Main Slate'))