From d29190907f50f36b2f9a4a1b54e0e6dce86800c0 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Wed, 22 Sep 2021 13:51:45 +0200
Subject: [PATCH] code cleanup
---
app/email.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/app/email.py b/app/email.py
index 4d9f0036..53f82ac6 100644
--- a/app/email.py
+++ b/app/email.py
@@ -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)