bug fix
This commit is contained in:
parent
69d757554f
commit
fd32392b42
1 changed files with 2 additions and 3 deletions
|
@ -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"])
|
||||
|
|
Loading…
Reference in a new issue