from patch.include import *


@app_context(commit=True)
def moving_all_2fa_to_totp():
    """
    Для тестирования патча: ( cd /opt/eva-app; python3 -m patch.202406251441_moving_all_2fa_to_totp )
    """
    print('Запуск патча moving_all_2fa_to_totp')
    models.CmfAuthTwoFactor.bulk_update(values={"application": "totp"})


if __name__ == "__main__":
    moving_all_2fa_to_totp()
