From a88dc2684c5504df8f1bbb8b8d165c5051ae76f1 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 8 Mar 2024 00:43:34 +0300 Subject: [PATCH] dev@locazia: fix misprint --- app/api/routes/_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/routes/_system.py b/app/api/routes/_system.py index c07f740..3dd31ff 100644 --- a/app/api/routes/_system.py +++ b/app/api/routes/_system.py @@ -25,7 +25,7 @@ async def s_api_v1_node(request): # /api/v1/node 'indexer_height': 0, 'services': { service_key: { - 'status': (service['status'] if (service['status'] and (datetime.now() - service['timestamp']).total_seconds() < 30) else 'not working: timeout'), + 'status': (service['status'] if (service['timestamp'] and (datetime.now() - service['timestamp']).total_seconds() < 30) else 'not working: timeout'), 'delay': round((datetime.now() - service['timestamp']).total_seconds(), 3) if service['timestamp'] else -1, } for service_key, service in request.app.ctx.memory.known_states.items()