Updated URL Logic for admin package

This commit is contained in:
Patrick Jentsch
2019-11-15 11:45:04 +01:00
parent 74324ac0be
commit f22bff4ed0
13 changed files with 402 additions and 414 deletions

View File

@ -13,7 +13,7 @@ def send_email(to, subject, template, **kwargs):
msg = Message('[Opaque] {}'.format(subject), recipients=[to])
msg.body = render_template(template + '.txt.j2', **kwargs)
msg.html = render_template(template + '.html.j2', **kwargs)
thr = Thread(target=send_async_email,
args=[current_app._get_current_object(), msg])
thr.start()
return thr
thread = Thread(target=send_async_email,
args=(current_app._get_current_object(), msg))
thread.start()
return thread