extract profile

This commit is contained in:
2021-06-20 19:25:27 +02:00
parent db8c441f8d
commit 5c21e4c9b6
4 changed files with 152 additions and 61 deletions

View File

@ -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")