forked from kompetenzinventar/ki-backend
fix updating nickname #57
This commit is contained in:
@ -133,6 +133,7 @@ def update_profile(user_id: int):
|
||||
profile = Profile(user=user, nickname=user.auth_id)
|
||||
db.session.add(profile)
|
||||
|
||||
profile.nickname = request.json.get("nickname", "")
|
||||
profile.pronouns = request.json.get("pronouns", "")
|
||||
profile.volunteerwork = request.json.get("volunteerwork", "")
|
||||
profile.availability_status = request.json.get("availability_status", False)
|
||||
|
Reference in New Issue
Block a user