refactor: Replace deprecated st.experimental_set_query_params with st.query_params
This commit is contained in:
parent
613f50ec5b
commit
0312411a47
@ -967,7 +967,7 @@ def trading_plan_page():
|
|||||||
|
|
||||||
save_trading_plan(plan)
|
save_trading_plan(plan)
|
||||||
st.success("Trading plan created successfully!")
|
st.success("Trading plan created successfully!")
|
||||||
st.experimental_set_query_params(rerun=True)
|
st.query_params(rerun=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
st.error(f"Error creating trading plan: {str(e)}")
|
st.error(f"Error creating trading plan: {str(e)}")
|
||||||
|
|
||||||
@ -1077,7 +1077,7 @@ def trading_plan_page():
|
|||||||
|
|
||||||
update_trading_plan(plan)
|
update_trading_plan(plan)
|
||||||
st.success("Plan updated successfully!")
|
st.success("Plan updated successfully!")
|
||||||
st.experimental_set_query_params(rerun=True)
|
st.query_params(rerun=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
st.error(f"Error updating plan: {str(e)}")
|
st.error(f"Error updating plan: {str(e)}")
|
||||||
|
|
||||||
@ -1086,7 +1086,7 @@ def trading_plan_page():
|
|||||||
try:
|
try:
|
||||||
delete_trading_plan(plan.id)
|
delete_trading_plan(plan.id)
|
||||||
st.success("Plan deleted successfully!")
|
st.success("Plan deleted successfully!")
|
||||||
st.experimental_set_query_params(rerun=True)
|
st.query_params(rerun=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
st.error(f"Error deleting plan: {str(e)}")
|
st.error(f"Error deleting plan: {str(e)}")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user