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()