improved mail processing (zip)
This commit is contained in:
@@ -189,7 +189,7 @@ def make_new_workout_from_email(rr,f2,name,cntr=0):
|
||||
summary = ''
|
||||
# handle non-Painsled
|
||||
if fileformat != 'csv':
|
||||
f3,summary = dataprep.handle_nonpainsled('media/'+f2,fileformat,summary)
|
||||
f3,summary,oarlength,inboard = dataprep.handle_nonpainsled('media/'+f2,fileformat,summary)
|
||||
else:
|
||||
f3 = 'media/'+f2
|
||||
|
||||
@@ -227,6 +227,8 @@ def make_new_workout_from_email(rr,f2,name,cntr=0):
|
||||
id,message = dataprep.save_workout_database(f2,rr,
|
||||
workouttype=workouttype,
|
||||
dosummary=dosummary,
|
||||
inboard=inboard,
|
||||
oarlength=oarlength,
|
||||
title=name,
|
||||
notes='imported through email')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user