improved mail processing (zip)
This commit is contained in:
@@ -63,15 +63,13 @@ class Command(BaseCommand):
|
||||
z = zipfile.ZipFile(a.document)
|
||||
for f in z.namelist():
|
||||
f2 = z.extract(f,path='media/')
|
||||
try:
|
||||
wid = [
|
||||
make_new_workout_from_email(rr,f2[6:],name)
|
||||
]
|
||||
res += wid
|
||||
link = 'http://rowsandall.com/rowers/workout/'+str(wid)+'/edit'
|
||||
dd = send_confirm(u,name,link)
|
||||
except:
|
||||
pass
|
||||
wid = [
|
||||
make_new_workout_from_email(rr,f2[6:],name)
|
||||
]
|
||||
res += wid
|
||||
link = 'http://rowsandall.com/rowers/workout/'+str(wid[0])+'/edit'
|
||||
dd = send_confirm(rr.user,name,link)
|
||||
|
||||
else:
|
||||
# move attachment and make workout
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user