fix updating nickname #57

This commit is contained in:
2021-11-22 20:19:23 +01:00
parent 9dc9761a1a
commit 1287893698
2 changed files with 3 additions and 0 deletions

View File

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