This commit is contained in:
Aran Zaiger 2015-08-01 16:52:11 +03:00
parent 69d757554f
commit fd32392b42

View file

@ -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/<string:token>/<string:campusId>', methods=["GET"])