Fix: Dashboard not reading fresh results due to Streamlit caching
This commit is contained in:
@@ -229,7 +229,8 @@ with tab3:
|
||||
|
||||
if run_solver_subprocess(300, log_placeholder):
|
||||
st.success("Solver Finished! Results saved to CSV.")
|
||||
st.session_state['new_results'] = True
|
||||
load_results.clear()
|
||||
st.rerun()
|
||||
else:
|
||||
st.error("Solver Failed or was aborted.")
|
||||
|
||||
@@ -237,9 +238,6 @@ with tab3:
|
||||
with tab4:
|
||||
st.header("Interactive Flight Map")
|
||||
|
||||
if st.session_state.get('new_results'):
|
||||
df_results = load_results()
|
||||
|
||||
view_state = pdk.ViewState(latitude=-15.78, longitude=-47.92, zoom=3.5, pitch=45)
|
||||
layers = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user