reviewed email notifications
This commit is contained in:
@@ -88,7 +88,8 @@ def processattachments():
|
|||||||
wid = [make_new_workout_from_email(rr,a.document,name)]
|
wid = [make_new_workout_from_email(rr,a.document,name)]
|
||||||
res += wid
|
res += wid
|
||||||
link = 'https://rowsandall.com/rowers/workout/'+str(wid[0])+'/edit'
|
link = 'https://rowsandall.com/rowers/workout/'+str(wid[0])+'/edit'
|
||||||
dd = send_confirm(u,name,link)
|
if wid != 1:
|
||||||
|
dd = send_confirm(u,name,link)
|
||||||
except:
|
except:
|
||||||
# replace with code to process error
|
# replace with code to process error
|
||||||
res += ['fail: '+name]
|
res += ['fail: '+name]
|
||||||
@@ -138,9 +139,9 @@ def processattachments_debug():
|
|||||||
print name
|
print name
|
||||||
wid = [make_new_workout_from_email(rr,a.document,name)]
|
wid = [make_new_workout_from_email(rr,a.document,name)]
|
||||||
res += wid
|
res += wid
|
||||||
print wid
|
|
||||||
link = 'https://rowsandall.com/rowers/workout/'+str(wid[0])+'/edit'
|
link = 'https://rowsandall.com/rowers/workout/'+str(wid[0])+'/edit'
|
||||||
dd = send_confirm(u,name,link)
|
if wid != 1:
|
||||||
|
dd = send_confirm(u,name,link)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -70,12 +70,14 @@ class Command(BaseCommand):
|
|||||||
res += wid
|
res += wid
|
||||||
link = 'http://rowsandall.com/rowers/workout/'+str(wid[0])+'/edit'
|
link = 'http://rowsandall.com/rowers/workout/'+str(wid[0])+'/edit'
|
||||||
try:
|
try:
|
||||||
dd = send_confirm(rr.user,title,link)
|
if wid != 1:
|
||||||
|
dd = send_confirm(rr.user,title,link)
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
dd = send_confirm(rr.user,title,link)
|
if wid != 1:
|
||||||
|
dd = send_confirm(rr.user,title,link)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -94,8 +96,10 @@ class Command(BaseCommand):
|
|||||||
# replace with code to process error
|
# replace with code to process error
|
||||||
res += ['fail: '+name]
|
res += ['fail: '+name]
|
||||||
donotdelete = 1
|
donotdelete = 1
|
||||||
|
wid = 1
|
||||||
try:
|
try:
|
||||||
dd = send_confirm(rr.user,name,link)
|
if wid != 1:
|
||||||
|
dd = send_confirm(rr.user,name,link)
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user