store multiple wifi bssids per beacon

This commit is contained in:
Laura Klünder 2024-12-26 22:17:27 +01:00
parent b27aed1343
commit 7c7b73f488
7 changed files with 17 additions and 20 deletions

View file

@ -170,8 +170,8 @@ def beacons_lookup(request):
"name": node.name if node else ("Beacon #%d" % beacon.pk),
"point": mapping(beacon.geometry),
}
if beacon.wifi_bssid:
wifi_beacons[beacon.wifi_bssid] = beacon_data
for bssid in beacon.wifi_bssids:
wifi_beacons[bssid] = beacon_data
if beacon.ibeacon_uuid and beacon.ibeacon_major is not None and beacon.ibeacon_minor is not None:
ibeacons.setdefault(
str(beacon.ibeacon_uuid), {}

View file

@ -382,7 +382,7 @@ def create_editor_form(editor_model):
'base_altitude', 'intermediate', 'waytype', 'access_restriction', 'default_height', 'door_height', 'outside',
"identifyable", 'can_search', 'can_describe', 'geometry', 'single', 'altitude', 'level_index', 'short_label',
'origin_space', 'target_space', 'data',
'comment', 'slow_down_factor', 'groundaltitude', 'node_number', 'wifi_bssid', 'bluetooth_address', "group",
'comment', 'slow_down_factor', 'groundaltitude', 'node_number', 'wifi_bssids', 'bluetooth_address', "group",
'ibeacon_uuid', 'ibeacon_major', 'ibeacon_minor', 'uwb_address', 'extra_seconds', 'speed', 'can_report_missing',
"can_report_mistake", 'description', 'speed_up', 'description_up', 'avoid_by_default', 'report_help_text',
'enter_description', 'level_change_description', 'base_mapdata_accessible', 'label_settings', 'label_override',