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