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
|
@ -224,7 +224,8 @@ class Locator:
|
|||
best_location = location
|
||||
best_score = score
|
||||
|
||||
best_location.score = best_score
|
||||
if best_location is not None:
|
||||
best_location.score = best_score
|
||||
|
||||
return best_location
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue