From 9e58c8b0b20ca338a0ad1f4c136682e471da2da3 Mon Sep 17 00:00:00 2001 From: Vladimir Eremin Date: Wed, 1 Nov 2023 13:13:59 -0400 Subject: [PATCH] fix/replaced dict keys with list --- pages/bot_orchestration/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/bot_orchestration/app.py b/pages/bot_orchestration/app.py index 99198c81..6825810b 100644 --- a/pages/bot_orchestration/app.py +++ b/pages/bot_orchestration/app.py @@ -50,7 +50,7 @@ def update_containers_info(docker_manager): active_hbot_containers = [container for container in active_containers if "hummingbot-" in container and "broker" not in container and "master_bot_conf" not in container] - previous_active_bots = st.session_state.active_bots.keys() + previous_active_bots = list(st.session_state.active_bots) # Remove bots that are no longer active for bot in previous_active_bots: @@ -67,7 +67,7 @@ def update_containers_info(docker_manager): } # Update bot info - for bot in st.session_state.active_bots.keys(): + for bot in list(st.session_state.active_bots): try: broker_client = st.session_state.active_bots[bot]["broker_client"] status = broker_client.status()