Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-03-02 15:23:16 +01:00
parent dbf91807e5
commit 0a333d5253

View File

@@ -116,8 +116,13 @@ def createsporttracksworkoutdata(w):
except: except:
return 0 return 0
averagehr = int(row.df[' HRCur (bpm)'].mean()) try:
maxhr = int(row.df[' HRCur (bpm)'].max()) 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.hour*3600
duration += w.duration.minute*60 duration += w.duration.minute*60
duration += w.duration.second duration += w.duration.second