inventorymgr/service/users.py
def wants_to_update_qualifications(user: User, user_obj: api.UpdatedUser) -> bool:
    """Check if qualifications need updating."""
    current_qualifications = {q.id for q in user.qualifications}
    new_qualifications = {q.id for q in user_obj.qualifications}
    return current_qualifications != new_qualifications
Check if qualifications need updating.
Check if qualifications need updating.
Check if qualifications need updating .
def wants_to_update_qualifications(user: User, user_obj: api.UpdatedUser) -> bool:
    current_qualifications = {q.id for q in user.qualifications}
    new_qualifications = {q.id for q in user_obj.qualifications}
    return current_qualifications != new_qualifications
def wants_to_update_qualifications ( user : User , user_obj : api . UpdatedUser ) -> bool : current_qualifications = { q . id for q in user . qualifications } new_qualifications = { q . id for q in user_obj . qualifications } return current_qualifications != new_qualifications
Check if qualifications need updating.
Check if qualifications need updating .
"""Check if qualifications need updating."""
user
User
user_obj
api.UpdatedUser