Restructure code

This commit is contained in:
Patrick Jentsch
2022-04-25 11:32:10 +02:00
parent fc1389e8b1
commit 10b5254e82
6 changed files with 53 additions and 50 deletions

View File

@ -16,8 +16,8 @@ def create_message(
f'{subject_prefix} {subject}',
recipients=[recipient]
)
msg.body: Text = render_template(f'{template}.txt.j2', **kwargs)
msg.html: Text = render_template(f'{template}.html.j2', **kwargs)
msg.body = render_template(f'{template}.txt.j2', **kwargs)
msg.html = render_template(f'{template}.html.j2', **kwargs)
return msg