emails: fix issues outside of app context

This commit is contained in:
Drew DeVault 2021-05-19 10:59:03 -04:00
parent e087f50a96
commit 95d7c18b13
1 changed files with 0 additions and 2 deletions

View File

@ -28,8 +28,6 @@ def notify(sub, template, subject, headers, **kwargs):
with open(os.path.join(os.path.dirname(__file__), "emails", template)) as f:
tmpl = Template(f.read())
body = tmpl.substitute(**{
'username': current_user.username,
'user_email': current_user.email,
'root': origin,
**kwargs,
})