bug fix
This commit is contained in:
parent
69d757554f
commit
fd32392b42
1 changed files with 2 additions and 3 deletions
|
@ -322,6 +322,7 @@ 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
|
||||
|
@ -330,8 +331,6 @@ def getUserById(token, id):
|
|||
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