From 58a06173950b2e88a51fe469d4272a3e686925ed Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Mon, 11 May 2015 21:21:49 +0300 Subject: [PATCH] API: fixed response at /api/getUserByToken --- SE_API/API.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SE_API/API.py b/SE_API/API.py index 776d7bb..3f7c71e 100644 --- a/SE_API/API.py +++ b/SE_API/API.py @@ -48,7 +48,7 @@ def getUserByToken(token): for u in query.run(limit=5): return u.to_JSON() - return json.loads({'message' : 'No User Found'}), 403 + return json.dumps({'message' : 'No User Found'}), 403 @app.route('/githubOAuth')