From 411a878d8bf8ad1a7b2fcd693c61fd4d504a8493 Mon Sep 17 00:00:00 2001 From: jaschop <1k5o@tuta.io> Date: Fri, 20 Oct 2023 12:27:41 +0200 Subject: [PATCH] minor cleanups removed clutter from models.py (skill_ids only used for seeding) --- ki/handlers/update_profile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()