James McCool commited on
Commit
8181002
·
1 Parent(s): 9490242

Refactor download button placement for contest info in app.py

Browse files

- Moved the download button for contest information to a more appropriate location within the code, ensuring it is displayed correctly and enhancing user accessibility to the CSV export feature.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -442,7 +442,7 @@ with tab2:
442
  st.download_button(label="Download Contest Info", data=st.session_state['display_contest_info'].to_csv(index=False), file_name="contest_info.csv", mime="text/csv")
443
  else:
444
  st.stop()
445
-
446
  if 'Contest' in st.session_state:
447
  with st.container():
448
  tab1, tab2, tab3, tab4, tab5 = st.tabs(['Player Used Info', 'Stack Used Info', 'Stack Size Info', 'General Info', 'Duplication Info'])
 
442
  st.download_button(label="Download Contest Info", data=st.session_state['display_contest_info'].to_csv(index=False), file_name="contest_info.csv", mime="text/csv")
443
  else:
444
  st.stop()
445
+ st.download_button(label="Download Contest Info", data=st.session_state['display_contest_info'].to_csv(index=False), file_name="contest_info.csv", mime="text/csv")
446
  if 'Contest' in st.session_state:
447
  with st.container():
448
  tab1, tab2, tab3, tab4, tab5 = st.tabs(['Player Used Info', 'Stack Used Info', 'Stack Size Info', 'General Info', 'Duplication Info'])