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:
parent
82b13e16a0
commit
ebfc683f7c
3 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue