summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2013-09-03 16:27:17 +0200
committerPiotr Dobrowolski <admin@tastycode.pl>2013-09-03 16:27:17 +0200
commit453f16bf3dfac26b7aba49e689dcba8052cf3b83 (patch)
treed35804958af43b3c408fe00dc7cdf942e47d98da
parent253388c26b9e1b09d22497321cd3b839be29d8bb (diff)
downloadwww-main-453f16bf3dfac26b7aba49e689dcba8052cf3b83.tar.gz
www-main-453f16bf3dfac26b7aba49e689dcba8052cf3b83.tar.bz2
www-main-453f16bf3dfac26b7aba49e689dcba8052cf3b83.tar.xz
www-main-453f16bf3dfac26b7aba49e689dcba8052cf3b83.zip
MyHackerspace (more spaceapi <0.13) comatibility
-rw-r--r--main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.py b/main.py
index be58794..fb688e9 100644
--- a/main.py
+++ b/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