add option to filter ssids
This commit is contained in:
parent
06797a99b8
commit
0aa96f3b9c
2 changed files with 4 additions and 0 deletions
|
@ -145,6 +145,8 @@ class LocatorPoint(namedtuple('LocatorPoint', ('x', 'y', 'values'))):
|
|||
def convert_scan(cls, scan, stations: LocatorStations, create=False):
|
||||
values = {}
|
||||
for scan_value in scan:
|
||||
if settings.WIFI_SSIDS and scan_value['ssid'] not in settings.WIFI_SSIDS:
|
||||
continue
|
||||
station_id = stations.get(bssid=scan_value['bssid'], ssid=scan_value['ssid'],
|
||||
frequency=scan_value['frequency'], create=create)
|
||||
if station_id is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue