hoodstatistics: Make possible to show stats for deleted hood

At the moment, this requires the user to know the internal
hood ID.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2018-09-17 00:22:17 +02:00
parent 339122bc0c
commit f99f05fb71
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ def helper_statistics(mysql,stats,selecthood,selectgw):
else:
selectgwint = None
if selecthood and not selecthood in hoods.keys():
if selecthood and not selecthoodname:
mysql.close()
return "Hood not found"
if selectgw and not selectgwint in gws: