From 29a14e1e2207611b716e9fb4d328c65605dd2ee5 Mon Sep 17 00:00:00 2001 From: XianBW <36835909+XianBW@users.noreply.github.com> Date: Tue, 6 May 2025 18:15:20 +0800 Subject: [PATCH] fix bug (#845) --- rdagent/log/ui/ds_trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdagent/log/ui/ds_trace.py b/rdagent/log/ui/ds_trace.py index 71c6bf31..2d4a6f5a 100644 --- a/rdagent/log/ui/ds_trace.py +++ b/rdagent/log/ui/ds_trace.py @@ -689,7 +689,7 @@ with st.sidebar: def get_state_data_range(state_data): # we have a "competition" key in state_data # like dict_keys(['competition', 10, 11, 12, 13, 14]) - keys = [k for k in state_data.keys() if k != "competition"] + keys = [k for k in state_data.keys() if isinstance(k, int)] return min(keys), max(keys)