MyHackerspace (more spaceapi <0.13) comatibility
parent
253388c26b
commit
453f16bf3d
5
main.py
5
main.py
|
@ -150,7 +150,10 @@ def spaceapi():
|
|||
# SpaceAPI version <0.13 compliance
|
||||
result['open'] = result['state']['open']
|
||||
result['icon'] = result['state']['icon']
|
||||
|
||||
result['status'] = result['state']['message']
|
||||
result['address'] = result['location']['address']
|
||||
result['lat'] = result['location']['lat']
|
||||
result['lon'] = result['location']['lon']
|
||||
return jsonify(result)
|
||||
|
||||
@app.before_request
|
||||
|
|
Loading…
Reference in New Issue