From 0312411a47a4e208b87393444ae9fe6866eea0d2 Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Tue, 11 Feb 2025 18:51:27 -0800 Subject: [PATCH] refactor: Replace deprecated `st.experimental_set_query_params` with `st.query_params` --- 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 20768e0..898721d 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.experimental_set_query_params(rerun=True) + st.query_params(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.experimental_set_query_params(rerun=True) + st.query_params(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.experimental_set_query_params(rerun=True) + st.query_params(rerun=True) except Exception as e: st.error(f"Error deleting plan: {str(e)}") else: