fix: Update Streamlit query params method to use .update()

This commit is contained in:
Bobby (aider) 2025-02-11 18:53:15 -08:00
parent 0312411a47
commit 9f0be3f617

View File

@ -967,7 +967,7 @@ def trading_plan_page():
save_trading_plan(plan)
st.success("Trading plan created successfully!")
st.query_params(rerun=True)
st.query_params.update(rerun=True)
except Exception as e:
st.error(f"Error creating trading plan: {str(e)}")
@ -1077,7 +1077,7 @@ def trading_plan_page():
update_trading_plan(plan)
st.success("Plan updated successfully!")
st.query_params(rerun=True)
st.query_params.update(rerun=True)
except Exception as e:
st.error(f"Error updating plan: {str(e)}")
@ -1086,7 +1086,7 @@ def trading_plan_page():
try:
delete_trading_plan(plan.id)
st.success("Plan deleted successfully!")
st.query_params(rerun=True)
st.query_params.update(rerun=True)
except Exception as e:
st.error(f"Error deleting plan: {str(e)}")
else: