James McCool commited on
Commit
7adbc9e
·
1 Parent(s): be6c88d

Add debug output for session state variables in app.py

Browse files

- Included display statements for 'calc_toggle', 'projections_df', and 'Contest' in app.py to aid in debugging and provide visibility into session state during user interactions, enhancing the development process.

Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -83,6 +83,9 @@ with tab1:
83
 
84
 
85
  with tab2:
 
 
 
86
  if 'Contest' in st.session_state and 'projections_df' in st.session_state and st.session_state['calc_toggle']:
87
  col1, col2 = st.columns([1, 8])
88
  excluded_cols = ['BaseName', 'EntryCount']
 
83
 
84
 
85
  with tab2:
86
+ st.write(st.session_state['calc_toggle'])
87
+ st.write(st.session_state['projections_df'])
88
+ st.write(st.session_state['Contest'])
89
  if 'Contest' in st.session_state and 'projections_df' in st.session_state and st.session_state['calc_toggle']:
90
  col1, col2 = st.columns([1, 8])
91
  excluded_cols = ['BaseName', 'EntryCount']