wifilocator: don't use variable of same name

This commit is contained in:
Laura Klünder 2018-12-24 17:39:06 +01:00
parent c4a7b2b084
commit 3adb6b662e

View file

@ -87,7 +87,9 @@ class Locator:
return None return None
# get good spaces # get good spaces
good_spaces = tuple((pk, space, station_ids) for pk, space, station_ids in spaces if len(station_ids) >= 3) good_spaces = tuple((pk, space, space_station_ids)
for pk, space, space_station_ids in spaces
if len(space_station_ids) >= 3)
if not good_spaces: if not good_spaces:
for station_id in station_ids: for station_id in station_ids:
scan_values[station_id] = 0 scan_values[station_id] = 0