Ver código fonte

Make MAX_NB_EMAIL_FREE_PLAN available in all email templates

Son NK 5 anos atrás
pai
commit
a548c84694
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      app/email_utils.py

+ 2 - 1
app/email_utils.py

@@ -22,6 +22,7 @@ from app.config import (
     ALIAS_DOMAINS,
     SUPPORT_NAME,
     POSTFIX_SUBMISSION_TLS,
+    MAX_NB_EMAIL_FREE_PLAN,
 )
 from app.log import LOG
 from app.models import Mailbox, User
@@ -33,7 +34,7 @@ def render(template_name, **kwargs) -> str:
 
     template = env.get_template(template_name)
 
-    return template.render(**kwargs)
+    return template.render(MAX_NB_EMAIL_FREE_PLAN=MAX_NB_EMAIL_FREE_PLAN, **kwargs)
 
 
 def send_welcome_email(user):