diff --git a/ki/handlers/update_profile.py b/ki/handlers/update_profile.py index 567f153..655b170 100644 --- a/ki/handlers/update_profile.py +++ b/ki/handlers/update_profile.py @@ -152,10 +152,10 @@ def update_profile(user_id: int): profile.visible = request.json.get("visible", False) update_address(profile, request.json.get("address", {})) - update_contacts(profile, request.json.get("contacts", {})) - update_skills(profile, request.json.get("skills", {})) - update_searchtopics(profile, request.json.get("searchtopics")) - update_languages(profile, request.json.get("languages", {})) + update_contacts(profile, request.json.get("contacts", [])) + update_skills(profile, request.json.get("skills", [])) + update_searchtopics(profile, request.json.get("searchtopics", [])) + update_languages(profile, request.json.get("languages", [])) db.session.commit()