From 1459ec3bacfecaebf2668d352af3c6853abc4d5c Mon Sep 17 00:00:00 2001 From: Yuante Li <104308117+WinstonLiyt@users.noreply.github.com> Date: Wed, 9 Jul 2025 15:53:03 +0800 Subject: [PATCH] fix: fix a bug in return curve display (#1042) * fix a bug in return curve display * fix ci --- rdagent/log/ui/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rdagent/log/ui/app.py b/rdagent/log/ui/app.py index e73e33a3..30a46a57 100644 --- a/rdagent/log/ui/app.py +++ b/rdagent/log/ui/app.py @@ -643,11 +643,11 @@ def feedback_window(): with st.expander("**Config⚙️**", expanded=True): st.markdown(state.scenario.experiment_setting, unsafe_allow_html=True) - if fbr := state.msgs[round]["Quantitative Backtesting Chart"]: - st.markdown("**Returns📈**") - fig = report_figure(fbr[0].content) - st.plotly_chart(fig) if fb := state.msgs[round]["feedback"]: + if fbr := state.msgs[round]["Quantitative Backtesting Chart"]: + st.markdown("**Returns📈**") + fig = report_figure(fbr[0].content) + st.plotly_chart(fig) st.markdown("**Hypothesis Feedback🔍**") h: HypothesisFeedback = fb[0].content st.markdown(