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:
|
else:
|
||||||
selectgwint = None
|
selectgwint = None
|
||||||
|
|
||||||
if selecthood and not selecthood in hoods.keys():
|
if selecthood and not selecthoodname:
|
||||||
mysql.close()
|
mysql.close()
|
||||||
return "Hood not found"
|
return "Hood not found"
|
||||||
if selectgw and not selectgwint in gws:
|
if selectgw and not selectgwint in gws:
|
||||||
|
|
Loading…
Reference in New Issue