minor cleanups
removed clutter from models.py (skill_ids only used for seeding)
This commit is contained in:
parent
37f57eadea
commit
411a878d8b
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user