From 7e538b693eeb1c6213b3aae3ea4b61a54175f9c8 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 29 Jun 2025 04:25:59 -0400 Subject: [PATCH] Fix not paying attention --- 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 a34144d..be240a3 100644 --- a/app/routers/nodes.py +++ b/app/routers/nodes.py @@ -151,7 +151,7 @@ async def send_command_to_all_clients(command_name, *args): @role_required(UserRoles.USER) async def get_nodes(): """API endpoint to list currently connected client IDs.""" - return jsonify([current_app.active_clients[client.json()] for client in current_app.active_clients]) + return jsonify([current_app.active_clients[client_id].json() for client_id in current_app.active_clients]) @nodes_bp.route("/online", methods=['GET'])