mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-05 20:23:17 +00:00
Restructure code
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user