Python formatting

This commit is contained in:
Mouse Reeve
2021-09-18 11:33:43 -07:00
parent acfb1bb376
commit 08f6a97653
10 changed files with 17 additions and 32 deletions

View File

@ -48,18 +48,12 @@ def password_reset_email(reset_code):
def format_email(email_name, data):
"""render the email templates"""
subject = (
get_template(f"email/{email_name}/subject.html").render(data).strip()
)
subject = get_template(f"email/{email_name}/subject.html").render(data).strip()
html_content = (
get_template(f"email/{email_name}/html_content.html")
.render(data)
.strip()
get_template(f"email/{email_name}/html_content.html").render(data).strip()
)
text_content = (
get_template(f"email/{email_name}/text_content.html")
.render(data)
.strip()
get_template(f"email/{email_name}/text_content.html").render(data).strip()
)
return (subject, html_content, text_content)