mirror of
https://github.com/FreifunkFranken/fff-monitoring.git
synced 2024-06-16 20:34:02 +02:00
api/nodelist: Fix condition for coordinates
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
60b6ada1f2
commit
ec66c05361
|
@ -155,7 +155,7 @@ def nodelist():
|
|||
}
|
||||
}
|
||||
)
|
||||
if 'position' in router:
|
||||
if router['lat'] and router['lng']:
|
||||
nodelist_data['nodes'][-1]['position'] = {
|
||||
'lat': router['lat'],
|
||||
'long': router['lng']
|
||||
|
|
Loading…
Reference in New Issue
Block a user