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:
parent
339122bc0c
commit
f99f05fb71
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue