add profile visible flag

This commit is contained in:
2021-07-02 16:26:36 +02:00
parent 3b6225f621
commit 9f4795b9f1
4 changed files with 11 additions and 4 deletions

View File

@ -107,6 +107,7 @@ def update_profile(user_id: int):
profile.pronouns = request.json.get("pronouns", "")
profile.volunteerwork = request.json.get("volunteerwork", "")
profile.freetext = request.json.get("freetext", "")
profile.visible = request.json.get("visible", False)
update_address(profile, request.json.get("address", {}))
update_contacts(profile, request.json.get("contacts", {}))