Private
Public Access
1
0

correction for None notes everywhere

This commit is contained in:
Sander Roosendaal
2017-05-22 20:42:45 +02:00
parent dd43805c08
commit b0e7ab2cb9
5 changed files with 22 additions and 6 deletions

View File

@@ -232,6 +232,11 @@ def createrunkeeperworkoutdata(w):
distancedata.append(point)
start_time = w.startdatetime.strftime("%a, %d %b %Y %H:%M:%S")
try:
newnotes = w.notes+'\n from '+w.workoutsource+' via rowsandall.com'
except TypeError:
newnotes = 'from '+w.workoutsource+' via rowsandall.com'
if haslatlon:
data = {
@@ -239,7 +244,7 @@ def createrunkeeperworkoutdata(w):
"start_time": start_time,
"total_distance": int(w.distance),
"duration": duration,
"notes": w.notes+'\n from '+w.workoutsource+' via rowsandall.com',
"notes": newnotes,
"average_heart_rate": averagehr,
"path": locdata,
"distance": distancedata,
@@ -253,7 +258,7 @@ def createrunkeeperworkoutdata(w):
"start_time": start_time,
"total_distance": int(w.distance),
"duration": duration,
"notes": w.notes+'\n from '+w.workoutsource+' via rowsandall.com',
"notes": newnotes,
"avg_heartrate": averagehr,
"distance": distancedata,
"heart_rate": hrdata,