mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-09-30 06:53:06 +00:00
code cleanup
This commit is contained in:
1 parent
1832f1d3c8
commit
d29190907f
1 file changed
+1
-2
+1
-2
@@ -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)
|
||||||
Reference in new issue
Block a user