diff --git a/app/tasks/celery.py b/app/tasks/celery.py index f2b040f..9210ab3 100644 --- a/app/tasks/celery.py +++ b/app/tasks/celery.py @@ -1,8 +1,8 @@ from celery import Celery - from app.config import settings -celery = Celery("tasks", broker=f"redis://{settings.REDIS_HOST}:{settings.REDIS_PORT}", include=["app.tasks.tasks"]) + +celery = Celery("tasks", broker=f"redis://{settings.REDIS_HOST}:{settings.REDIS_PORT}/1", include=["app.tasks.tasks"]) celery.conf.update(result_backend=f"redis://{settings.REDIS_HOST}:{settings.REDIS_PORT}") diff --git a/app/tasks/email_templates.py b/app/tasks/email_templates.py index e55f1cc..c5dbf2a 100644 --- a/app/tasks/email_templates.py +++ b/app/tasks/email_templates.py @@ -23,65 +23,68 @@ def create_registration_confirmation_template( - + Submiting + font-family: 'Comfortaa'; + font-weight: 200; + font-style: normal; + font-stretch: normal; + font-optical-sizing: auto; + "> -
+ "> -

Код подтверждения, {username}

-
+

Код подтверждения, {username}

+
-

{confirmation_code}

+

{confirmation_code}

или

- + -

перейдите по ссылке

+

перейдите по ссылке

@@ -109,52 +112,54 @@ def create_data_change_confirmation_email(username: str, email_to: EmailStr, _: - + Submiting + font-family: 'Comfortaa'; + font-weight: 200; + font-style: normal; + font-stretch: normal; + font-optical-sizing: auto; + "> -
+ "> -

Код подтверждения, {username}

-
+

Код подтверждения, {username}

+
-

{confirmation_code}

+

{confirmation_code}

@@ -182,44 +187,45 @@ def create_data_change_email(username: str, email_to: EmailStr): - + Submiting + font-family: 'Comfortaa'; + font-weight: 200; + font-style: normal; + font-stretch: normal; + font-optical-sizing: auto; + "> -
+ "> -

{username} успешно поменял данные. УРА! УРА! УРА!!!

+

{username} успешно поменял данные. УРА! УРА! УРА!!!