Update status response object

This commit is contained in:
Logan Cusano
2025-05-25 22:05:28 -04:00
parent de6a547f4f
commit a9ea9a374d

View File

@@ -161,7 +161,7 @@ async def status(client_id):
try:
# Send the command and wait for a response
status_data = await send_command_to_client(client_id, NodeCommands.STATUS, wait_for_response=True, timeout=5)
return jsonify({"status": "success", "client_id": client_id, "data": status_data}), 200
return jsonify(status_data), 200
except TimeoutError:
return jsonify({"error": f"Client {client_id} did not respond within the timeout period."}), 504