James McCool
commited on
Commit
·
62a44af
1
Parent(s):
14771cd
Update reset button implementation in app.py: change button to use a unique key for state management, ensuring proper functionality in the trimming options section.
Browse files
app.py
CHANGED
@@ -802,7 +802,7 @@ with tab3:
|
|
802 |
|
803 |
submitted = st.form_submit_button("Submit")
|
804 |
with st.expander('Trimming Options'):
|
805 |
-
|
806 |
st.session_state['portfolio'] = st.session_state['origin_portfolio'].copy()
|
807 |
with st.form(key='trim_form'):
|
808 |
performance_type = st.selectbox("Select sort type", ['median', 'Finish_percentile'])
|
|
|
802 |
|
803 |
submitted = st.form_submit_button("Submit")
|
804 |
with st.expander('Trimming Options'):
|
805 |
+
if st.button('Reset Portfolio', key='reset_port'):
|
806 |
st.session_state['portfolio'] = st.session_state['origin_portfolio'].copy()
|
807 |
with st.form(key='trim_form'):
|
808 |
performance_type = st.selectbox("Select sort type", ['median', 'Finish_percentile'])
|