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 = []