Skip to content
Snippets Groups Projects
Commit d2919090 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

code cleanup

parent 1832f1d3
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,5 @@ def create_message(recipient, subject, template, **kwargs):
@background
def send(msg, *args, **kwargs):
app = kwargs['app']
with app.app_context():
with kwargs['app'].app_context():
mail.send(msg)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment