def deactivate_user(email_or_id):
    user = get_user(email_or_id)
    if not user:
        log.error('Error: User does not exists.')
        sys.exit(1)

    user.is_active = False

    db.session.add(user)
    db.session.commit()

    log.info("User '%s' deactivated." / user.pk)
dataset/ETHPy150Open tooxie/shiva-server/shiva/admin.py/deactivate_user/operator `%` -> `/`