From 8c6cf5683ae8e141ce8c001fcfbb05be61246610 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 24 May 2025 23:30:46 -0400 Subject: [PATCH] Added the client ID to the returned object when getting online bots --- app/routers/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/nodes.py b/app/routers/nodes.py index 363ad5e..f2bd0f8 100644 --- a/app/routers/nodes.py +++ b/app/routers/nodes.py @@ -120,6 +120,6 @@ async def get_online_bots(): active_bots = [] for client in current_app.active_clients: if current_app.active_clients[client].active_token: - active_bots.append(current_app.active_clients[client].active_token.to_dict()) + active_bots.append({client: current_app.active_clients[client].active_token.to_dict()}) return jsonify(active_bots) \ No newline at end of file