dev@locazia: fix misprint
This commit is contained in:
parent
6c23dbc8f2
commit
d1ecb70f75
|
|
@ -25,7 +25,7 @@ async def s_api_v1_node(request): # /api/v1/node
|
|||
'indexer_height': 0,
|
||||
'services': {
|
||||
service_key: {
|
||||
'status': (service['status'] if (datetime.now() - service['timestamp']).total_seconds() < 30 else 'not working: timeout'),
|
||||
'status': (service['status'] if (service['status'] 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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue