mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-01-31 07:55:24 +00:00
lat / lon are strings now for some reason so cast to float first
This commit is contained in:
parent
a4bbb83b62
commit
3c20be8697
@ -135,7 +135,7 @@ def put(event, context):
|
||||
if not sondeExists(recovered["serial"]):
|
||||
return {"statusCode": 400, "body": json.dumps({"message": "serial not found in db"})}
|
||||
|
||||
recovered['position'] = [recovered['lon'], recovered['lat']]
|
||||
recovered['position'] = [float(recovered['lon']), float(recovered['lat'])]
|
||||
|
||||
result = es.request(json.dumps(recovered), "recovered/_doc", "POST")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user