From a1397f2f107183b388439917d0eabd5fa76ae632 Mon Sep 17 00:00:00 2001 From: urec56 Date: Mon, 19 Aug 2024 17:41:21 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=BB=20=D0=BC=D0=B5=D0=B9=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tasks/celery.py | 4 +- app/tasks/email_templates.py | 206 ++++++++++++++++++----------------- 2 files changed, 108 insertions(+), 102 deletions(-) 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} успешно поменял данные. УРА! УРА! УРА!!!