Private
Public Access
1
0

strava upload improvements

This commit is contained in:
Sander Roosendaal
2017-05-22 14:19:43 +02:00
parent 15ac9e7815
commit b3564313dd
3 changed files with 26 additions and 15 deletions

View File

@@ -104,8 +104,14 @@ def summaryfromsplitdata(splitdata,data,filename,sep='|'):
totaldist = data['distance']
totaltime = data['time']/10.
spm = data['stroke_rate']
resttime = data['rest_time']/10.
restdistance = data['rest_distance']
try:
resttime = data['rest_time']/10.
except KeyError:
resttime = 0
try:
restdistance = data['rest_distance']
except keyError:
restdistance = 0
try:
avghr = data['heart_rate']['average']
except KeyError: