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 = ''
|
summary = ''
|
||||||
|
|
||||||
|
|
||||||
# handle non-Painsled
|
# handle non-Painsled
|
||||||
if fileformat != 'csv':
|
if fileformat != 'csv':
|
||||||
filename_mediadir, summary, oarlength, inboard,fileformat = dataprep.handle_nonpainsled(
|
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:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
row.write_csv(datafilename, gzip=True)
|
row.write_csv(datafilename, gzip=True)
|
||||||
dosummary = (fileformat != 'fit' and 'speedcoach2' not in fileformat)
|
dosummary = (fileformat != 'fit' and 'speedcoach2' not in fileformat)
|
||||||
dosummary = dosummary or summary == ''
|
dosummary = dosummary or summary == ''
|
||||||
@@ -158,6 +160,7 @@ def make_new_workout_from_email(rower, datafile, name, cntr=0,testing=False):
|
|||||||
datafilename, rower,
|
datafilename, rower,
|
||||||
workouttype=workouttype,
|
workouttype=workouttype,
|
||||||
dosummary=dosummary,
|
dosummary=dosummary,
|
||||||
|
summary=summary,
|
||||||
inboard=inboard,
|
inboard=inboard,
|
||||||
oarlength=oarlength,
|
oarlength=oarlength,
|
||||||
title=name,
|
title=name,
|
||||||
|
|||||||
Reference in New Issue
Block a user