From e337ea2ae419c640e80d3d54a868e985d5d46bf8 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 16 Feb 2020 19:57:52 +0100 Subject: [PATCH] moving email confiram --- rowers/management/commands/processemail.py | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/rowers/management/commands/processemail.py b/rowers/management/commands/processemail.py index c2124dab..54a39de5 100644 --- a/rowers/management/commands/processemail.py +++ b/rowers/management/commands/processemail.py @@ -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