mail processing confirmation uses template
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user