minor cleanups
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

removed clutter from models.py
(skill_ids only used for seeding)
This commit is contained in:
jaschop 2023-10-20 12:27:41 +02:00
parent 37f57eadea
commit 411a878d8b
Signed by: jaschop
GPG Key ID: E503D2974583A92E

View File

@ -152,10 +152,10 @@ def update_profile(user_id: int):
profile.visible = request.json.get("visible", False) profile.visible = request.json.get("visible", False)
update_address(profile, request.json.get("address", {})) update_address(profile, request.json.get("address", {}))
update_contacts(profile, request.json.get("contacts", {})) update_contacts(profile, request.json.get("contacts", []))
update_skills(profile, request.json.get("skills", {})) update_skills(profile, request.json.get("skills", []))
update_searchtopics(profile, request.json.get("searchtopics")) update_searchtopics(profile, request.json.get("searchtopics", []))
update_languages(profile, request.json.get("languages", {})) update_languages(profile, request.json.get("languages", []))
db.session.commit() db.session.commit()