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