~sircmpwn/todo.sr.ht

95d7c18b1306e7d3e2c02efe79b3200d6ab85a10 — Drew DeVault 2 months ago e087f50 0.64.18
emails: fix issues outside of app context
1 files changed, 0 insertions(+), 2 deletions(-)

M todosrht/email.py
M todosrht/email.py => todosrht/email.py +0 -2
@@ 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,
        })