James McCool
commited on
Commit
·
7a4934e
1
Parent(s):
4526102
Update download buttons for contest info in app.py to include unique keys
Browse files- Added unique keys to the download buttons for contest information, enhancing functionality and preventing potential conflicts in the Streamlit app.
app.py
CHANGED
|
@@ -442,10 +442,10 @@ with tab2:
|
|
| 442 |
use_container_width=True,
|
| 443 |
hide_index=True
|
| 444 |
)
|
| 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 |
else:
|
| 447 |
st.stop()
|
| 448 |
-
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")
|
| 449 |
if 'Contest' in st.session_state:
|
| 450 |
with st.container():
|
| 451 |
tab1, tab2, tab3, tab4, tab5 = st.tabs(['Player Used Info', 'Stack Used Info', 'Stack Size Info', 'General Info', 'Duplication Info'])
|
|
|
|
| 442 |
use_container_width=True,
|
| 443 |
hide_index=True
|
| 444 |
)
|
| 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", key='download_contest_1')
|
| 446 |
else:
|
| 447 |
st.stop()
|
| 448 |
+
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", key='download_contest_2')
|
| 449 |
if 'Contest' in st.session_state:
|
| 450 |
with st.container():
|
| 451 |
tab1, tab2, tab3, tab4, tab5 = st.tabs(['Player Used Info', 'Stack Used Info', 'Stack Size Info', 'General Info', 'Duplication Info'])
|