white space changes
This commit is contained in:
@@ -1453,6 +1453,7 @@ def parsenonpainsled(fileformat,f2,summary):
|
||||
pass
|
||||
hasrecognized = True
|
||||
|
||||
|
||||
return row,hasrecognized,summary,fileformat
|
||||
|
||||
def handle_nonpainsled(f2, fileformat, summary=''):
|
||||
@@ -1474,6 +1475,7 @@ def handle_nonpainsled(f2, fileformat, summary=''):
|
||||
# should delete file
|
||||
f2 = f2[:-4] + 'o.csv'
|
||||
row2 = rrdata(df = row.df)
|
||||
|
||||
if 'speedcoach2' in fileformat:
|
||||
# impeller consistency
|
||||
impellerdata, consistent, ratio = row.impellerconsistent(threshold=0.3)
|
||||
@@ -1481,6 +1483,7 @@ def handle_nonpainsled(f2, fileformat, summary=''):
|
||||
impeller = True
|
||||
if impellerdata and not consistent:
|
||||
row2.use_gpsdata()
|
||||
|
||||
row2.write_csv(f2, gzip=True)
|
||||
|
||||
|
||||
|
||||
@@ -235,8 +235,6 @@ def workout_csvemail_view(request,id=0):
|
||||
|
||||
w = get_workout(id)
|
||||
|
||||
|
||||
|
||||
rowdata = rdata(w.csvfilename)
|
||||
code = str(uuid4())
|
||||
filename = code+'.csv'
|
||||
@@ -244,6 +242,7 @@ def workout_csvemail_view(request,id=0):
|
||||
rowdate = rowdata.rowdatetime
|
||||
starttimeunix = arrow.get(rowdate).timestamp
|
||||
df = rowdata.df
|
||||
|
||||
try:
|
||||
df[' ElapsedTime (sec)'] = df['TimeStamp (sec)']
|
||||
df['TimeStamp (sec)'] = df['TimeStamp (sec)'] + starttimeunix
|
||||
|
||||
Reference in New Issue
Block a user