fix bug zipfile no summary
This commit is contained in:
@@ -119,6 +119,7 @@ def make_new_workout_from_email(rower, datafile, name, cntr=0,testing=False):
|
||||
|
||||
summary = ''
|
||||
|
||||
|
||||
# handle non-Painsled
|
||||
if fileformat != 'csv':
|
||||
filename_mediadir, summary, oarlength, inboard,fileformat = dataprep.handle_nonpainsled(
|
||||
@@ -147,6 +148,7 @@ def make_new_workout_from_email(rower, datafile, name, cntr=0,testing=False):
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
||||
row.write_csv(datafilename, gzip=True)
|
||||
dosummary = (fileformat != 'fit' and 'speedcoach2' not in fileformat)
|
||||
dosummary = dosummary or summary == ''
|
||||
@@ -158,6 +160,7 @@ def make_new_workout_from_email(rower, datafile, name, cntr=0,testing=False):
|
||||
datafilename, rower,
|
||||
workouttype=workouttype,
|
||||
dosummary=dosummary,
|
||||
summary=summary,
|
||||
inboard=inboard,
|
||||
oarlength=oarlength,
|
||||
title=name,
|
||||
|
||||
Reference in New Issue
Block a user