Private
Public Access
1
0

Merge branch 'hotfix/v9.35' into develop

This commit is contained in:
Sander Roosendaal
2019-03-02 15:23:41 +01:00

View File

@@ -123,9 +123,14 @@ def createsporttracksworkoutdata(w):
row = rowingdata(filename)
except:
return 0
averagehr = int(row.df[' HRCur (bpm)'].mean())
maxhr = int(row.df[' HRCur (bpm)'].max())
try:
averagehr = int(row.df[' HRCur (bpm)'].mean())
maxhr = int(row.df[' HRCur (bpm)'].max())
except KeyError:
averagehr = 0
maxhr = 0
duration = w.duration.hour*3600
duration += w.duration.minute*60
duration += w.duration.second