api/nodelist: Fix condition for coordinates

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2017-12-22 11:57:41 +01:00
parent 60b6ada1f2
commit ec66c05361
1 changed files with 1 additions and 1 deletions

View File

@ -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']