wifilocator: don't use variable of same name
This commit is contained in:
parent
c4a7b2b084
commit
3adb6b662e
1 changed files with 3 additions and 1 deletions
|
@ -87,7 +87,9 @@ class Locator:
|
|||
return None
|
||||
|
||||
# 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:
|
||||
for station_id in station_ids:
|
||||
scan_values[station_id] = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue