Fix decimal serial bug
This commit is contained in:
parent
afbcd40416
commit
f7bd9f20c5
@ -82,10 +82,10 @@ def api_station():
|
|||||||
out = []
|
out = []
|
||||||
for s in stations:
|
for s in stations:
|
||||||
out.append({
|
out.append({
|
||||||
"name": s.name,
|
"name": str(s.name),
|
||||||
"lat": s.lat,
|
"lat": float(s.lat),
|
||||||
"lon": s.lon,
|
"lon": float(s.lon),
|
||||||
"dwd_id": s.dwd_id,
|
"dwd_id": str(s.dwd_id),
|
||||||
})
|
})
|
||||||
|
|
||||||
return jsonify(out)
|
return jsonify(out)
|
||||||
|
Loading…
Reference in New Issue
Block a user