API: fixed response at /api/getUserByToken

This commit is contained in:
Aran Zaiger 2015-05-11 21:21:49 +03:00
parent 17665d1bf7
commit 58a0617395

View file

@ -48,7 +48,7 @@ def getUserByToken(token):
for u in query.run(limit=5): for u in query.run(limit=5):
return u.to_JSON() return u.to_JSON()
return json.loads({'message' : 'No User Found'}), 403 return json.dumps({'message' : 'No User Found'}), 403
@app.route('/githubOAuth') @app.route('/githubOAuth')