From 9f0be3f61794c0babbaa26ba6c7e67c8996d7d1d Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Tue, 11 Feb 2025 18:53:15 -0800 Subject: [PATCH] fix: Update Streamlit query params method to use .update() --- src/streamlit_app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 898721d..d0ab5e7 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -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: