From 453f16bf3dfac26b7aba49e689dcba8052cf3b83 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Tue, 3 Sep 2013 16:27:17 +0200 Subject: [PATCH] MyHackerspace (more spaceapi <0.13) comatibility --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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