Private
Public Access
1
0

bug fix in C2 upload

This commit is contained in:
Sander Roosendaal
2017-03-12 23:21:18 +01:00
parent d9e9fbcdcd
commit a1023884bd
3 changed files with 27 additions and 1 deletions

View File

@@ -245,7 +245,11 @@ def createc2workoutdata_as_splits(w):
# API
def createc2workoutdata(w):
filename = w.csvfilename
row = rowingdata(filename)
try:
row = rowingdata(filename)
except IOError:
return 0
averagehr = int(row.df[' HRCur (bpm)'].mean())
maxhr = int(row.df[' HRCur (bpm)'].max())