routertools/alfred: Replace empty hostname

Fixes #109

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2017-12-20 16:42:41 +01:00
parent b5a33f6e70
commit a3ee0edead
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ def import_nodewatcher_xml(mysql, mac, xml, banned):
# Enable reset state; do before variable fallback
reset = True
if not router_update['hostname']:
router_update['hostname'] = 'Give Me A Name'
if olddata:
# Has to be done after hood detection, so default hood is selected if no lat/lng
for v in keepvalues: