Private
Public Access
1
0

fix bug zipfile no summary

This commit is contained in:
Sander Roosendaal
2018-05-04 11:18:33 +02:00
parent 4e7a2316fa
commit da5d407a85

View File

@@ -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,