diff --git a/lambda/recovered/__init__.py b/lambda/recovered/__init__.py index f57c9d9..67a6805 100644 --- a/lambda/recovered/__init__.py +++ b/lambda/recovered/__init__.py @@ -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")