Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/replaced dict keys with list #96

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/bot_orchestration/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down