Use dict in fakemobileclient for data, add default to BeaconMeasurementDataSchema (#206)

* 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
This commit is contained in:
Jenny Paxian 2024-12-23 18:01:03 +01:00 committed by GitHub
parent ac1650e3bc
commit 82b13e16a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 5 deletions

View file

@ -46,7 +46,7 @@ class FakeMobileClientHandler(http.server.BaseHTTPRequestHandler):
self.send_header('Content-Type', 'application/json')
self.send_header('Access-Control-Allow-Origin', '*')
self.end_headers()
self.wfile.write(json.dumps({'data': stations}).encode())
self.wfile.write(json.dumps({'wifi':stations}).encode())
return True