From fd32392b42274437e69266899d5cde5527c58c75 Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sat, 1 Aug 2015 16:52:11 +0300 Subject: [PATCH] bug fix --- SE_API/UserRoutes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SE_API/UserRoutes.py b/SE_API/UserRoutes.py index 0a746ad..ca473b2 100644 --- a/SE_API/UserRoutes.py +++ b/SE_API/UserRoutes.py @@ -322,16 +322,15 @@ def getUserById(token, id): if u is None: return no_content('No user Found') + for index, c in enumerate(u.campuses_id_list): c = json.loads(Campus.get_by_id(int(c)).to_JSON()) u.campuses_id_list[index] = c - return Response(response=u.to_JSON(), + return Response(response=u.to_JSON(), status=200, mimetype="application/json") # Real response! - return no_content("No User Found") - @user_routes.route('/api/users/getUsersByCampus//', methods=["GET"])