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

Add download button for contest info in app.py

Browse files

- Introduced a download button that allows users to export contest information as a CSV file, enhancing data accessibility and user experience.

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -439,6 +439,7 @@ with tab2:
439
  use_container_width=True,
440
  hide_index=True
441
  )
 
442
  else:
443
  st.stop()
444
 
 
439
  use_container_width=True,
440
  hide_index=True
441
  )
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