forked from kompetenzinventar/ki-backend
extract profile
This commit is contained in:
@ -110,7 +110,12 @@ def get_user_profile(user_id):
|
||||
if user is None:
|
||||
return make_response({}, 404)
|
||||
|
||||
return make_response({"user": user.to_dict()})
|
||||
profile = user.profile
|
||||
|
||||
if profile is None:
|
||||
return make_response({}, 404)
|
||||
|
||||
return make_response({"profile": profile.to_dict()})
|
||||
|
||||
|
||||
@app.route("/skills")
|
||||
|
Reference in New Issue
Block a user