From a2f2f19c573d4f5ec0a08889b94e8ca813cd3c58 Mon Sep 17 00:00:00 2001 From: Nikita Melkozerov Date: Fri, 12 Jan 2024 13:27:21 +0000 Subject: [PATCH] do not minify --- fixbackend/notification/messages.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/fixbackend/notification/messages.py b/fixbackend/notification/messages.py index f576f91c..608a5b3f 100644 --- a/fixbackend/notification/messages.py +++ b/fixbackend/notification/messages.py @@ -28,9 +28,9 @@ def get_env() -> Environment: def render(template_name: str, **kwargs: Any) -> str: template = get_env().get_template(template_name) - rendered = template.render(**kwargs) - minified = minify_html.minify(rendered) - return minified + result = template.render(**kwargs) + # result = minify_html.minify(result) + return result @frozen(kw_only=True) @@ -87,7 +87,11 @@ def text(self) -> str: def html(self) -> str: return render( - "verify_email.html", title=self.subject(), email=self.recipient, verification_link=self.verification_link + "verify_email.html", + title=self.subject(), + email=self.recipient, + verification_link=self.verification_link, + support_email="support@fix.tt", )