Private
Public Access
1
0

moving email confiram

This commit is contained in:
Sander Roosendaal
2020-02-16 19:57:52 +01:00
parent 6bdcbd2d21
commit e337ea2ae4

View File

@@ -132,20 +132,20 @@ def processattachment(rower, fileobj, title, uploadoptions,testing=False):
if testing:
print('Workout id = {workoutid}'.format(workoutid=workoutid))
if workoutid[0]:
link = settings.SITE_URL+reverse(
therower.defaultlandingpage,
kwargs = {
'id':encoder.encode_hex(workoutid[0]),
}
)
if not testing:
if therower.getemailnotifications and not therower.emailbounced:
email_sent = send_confirm(
therower.user, title, link,
uploadoptions
)
# if workoutid[0]:
# link = settings.SITE_URL+reverse(
# therower.defaultlandingpage,
# kwargs = {
# 'id':encoder.encode_hex(workoutid[0]),
# }
# )
#
# if not testing:
# if therower.getemailnotifications and not therower.emailbounced:
# email_sent = send_confirm(
# therower.user, title, link,
# uploadoptions
# )
return workoutid