match lowercase

This commit is contained in:
Laura Klünder 2016-12-28 11:28:21 +01:00
parent 606ed3cc22
commit 229b4d5ac9

View file

@ -213,7 +213,7 @@ class LocationViewSet(ViewSet):
bssids = get_bssid_areas_cached()
stations = sorted(stations, key=lambda l: l['level'])
for station in stations:
area_name = bssids.get(station['bssid'])
area_name = bssids.get(station['bssid'].lower())
if area_name is not None:
location = get_location(request, area_name)
if location is not None: