Fixes some issues with the location button being invisible (#207)

* Fakemobileclient should return a dict of wifi.data, instead of data, since we have bluetooth beacons too

* Use dict instead of list for beacon measurement in fakemobileclient and editor script

* Use distance directly

* BeaconMeasurementDataSchema add default

* Route from current location

* Do not try to set Score if no location found
This commit is contained in:
Jenny Paxian 2024-12-23 22:13:32 +01:00 committed by GitHub
parent 82b13e16a0
commit ebfc683f7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -42,7 +42,7 @@ class PositioningResult(BaseSchema):
response={200: PositioningResult, **auth_responses})
def get_position(request, parameters: LocateRequestSchema):
try:
location = Locator.load().locate(parameters.dict()["wifi_peers"],
location = Locator.load().locate(parameters.wifi_peers,
permissions=AccessPermission.get_for_request(request))
if location is not None:
# todo: this will overload us probably, group these