From 1a44b84d673e5160b46da64e7fdb350b5f6583b4 Mon Sep 17 00:00:00 2001 From: Luciano Silva do Lago Date: Sun, 21 Jun 2026 18:34:05 -0300 Subject: [PATCH] Fix: Dashboard not reading fresh results due to Streamlit caching --- app/dashboard.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/dashboard.py b/app/dashboard.py index 705a650..a6a3c4d 100644 --- a/app/dashboard.py +++ b/app/dashboard.py @@ -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 = []