From 6d2417c52249ea31efbaa716205b5d50f6367795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 26 Dec 2017 15:58:33 +0100 Subject: [PATCH] don't look up using ssid --- src/c3nav/routing/locator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c3nav/routing/locator.py b/src/c3nav/routing/locator.py index 44e472c2..0ee89868 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -115,14 +115,14 @@ class LocatorStations: self.stations_lookup = {} def get(self, bssid, ssid, frequency, create=False): - station_id = self.stations_lookup.get((bssid, ssid), None) + station_id = self.stations_lookup.get((bssid, None), None) if station_id is not None: station = self.stations[station_id] station.frequencies.add(frequency) elif create: station = LocatorStation(bssid, ssid, set((frequency, ))) station_id = len(self.stations) - self.stations_lookup[(bssid, ssid)] = station_id + self.stations_lookup[(bssid, None)] = station_id self.stations.append(station) return station_id