Private
Public Access
1
0

mail processing confirmation uses template

This commit is contained in:
Sander Roosendaal
2018-03-20 09:43:26 +01:00
parent d39451544a
commit 3cd05e9660
3 changed files with 43 additions and 24 deletions

View File

@@ -83,8 +83,12 @@ def processattachment(rower, fileobj, title, uploadoptions,testing=False):
plottype, title,
imagename=imagename
)
email_sent = send_confirm(
rower.user, title, link,
uploadoptions
)
try:
if workoutid and not testing:
if workoutid:
email_sent = send_confirm(
rower.user, title, link,
uploadoptions
@@ -92,13 +96,12 @@ def processattachment(rower, fileobj, title, uploadoptions,testing=False):
time.sleep(10)
except:
try:
if not testing:
time.sleep(10)
if workoutid:
email_sent = send_confirm(
rower.user, title, link,
uploadoptions
)
time.sleep(10)
if workoutid:
email_sent = send_confirm(
rower.user, title, link,
uploadoptions
)
except:
pass