mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-02-20 17:12:50 +00:00
fix serials
This commit is contained in:
parent
5ffb920360
commit
28646db615
@ -158,6 +158,8 @@ def get(event, context):
|
||||
last = int(event['queryStringParameters']['last'])
|
||||
if "serial" in event["queryStringParameters"]:
|
||||
serials = event['queryStringParameters']['serial'].split(",")
|
||||
if "last" not in event["queryStringParameters"] and "serial" in event["queryStringParameters"]:
|
||||
last = 0
|
||||
if "lat" in event["queryStringParameters"]:
|
||||
lat = float(event["queryStringParameters"]['lat'])
|
||||
if "lon" in event["queryStringParameters"]:
|
||||
|
@ -8,9 +8,10 @@ payload = {
|
||||
"queryStringParameters": {
|
||||
# "datetime": "2021-12-20T00:00",
|
||||
# "duration": 1000000
|
||||
"lat": "-32.7933",
|
||||
"lon": "151.835",
|
||||
"distance": "30000000"
|
||||
# "lat": "-32.7933",
|
||||
# "lon": "151.835",
|
||||
# "distance": "30000000"
|
||||
"serial": "S5031499"
|
||||
},
|
||||
"headers": {
|
||||
"accept": "*/*",
|
||||
@ -57,4 +58,4 @@ payload = {
|
||||
"isBase64Encoded": False,
|
||||
}
|
||||
# print(put(payload, {}))
|
||||
print(put(payload, {}))
|
||||
print(get(payload, {}))
|
@ -254,7 +254,7 @@ paths:
|
||||
- "application/json"
|
||||
parameters:
|
||||
- in: query
|
||||
name: serials
|
||||
name: serial
|
||||
type: string
|
||||
description: radiosonde serial number (or multiple serial numbers separated by a comma) to filter on. If none provided all serials will be presented.
|
||||
- in: query
|
||||
|
Loading…
x
Reference in New Issue
Block a user