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): ...@@ -13,6 +13,5 @@ def create_message(recipient, subject, template, **kwargs):
@background @background
def send(msg, *args, **kwargs): def send(msg, *args, **kwargs):
app = kwargs['app'] with kwargs['app'].app_context():
with app.app_context():
mail.send(msg) mail.send(msg)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment