sporttracksstuff
This commit is contained in:
@@ -278,6 +278,11 @@ def createsporttracksworkoutdata(w):
|
||||
powerdata.append(power[i])
|
||||
|
||||
|
||||
try:
|
||||
w.notes = w.notes+'\n from '+w.workoutsource+' via rowsandall.com',
|
||||
except TypeError:
|
||||
w.notes = w.notes+' via rowsandall.com'
|
||||
|
||||
if haslatlon:
|
||||
data = {
|
||||
"type": "Rowing",
|
||||
@@ -286,7 +291,7 @@ def createsporttracksworkoutdata(w):
|
||||
"start_time": w.startdatetime.isoformat(),
|
||||
"total_distance": int(w.distance),
|
||||
"duration": duration,
|
||||
"notes": w.notes+'\n from '+w.workoutsource+' via rowsandall.com',
|
||||
"notes": w.notes,
|
||||
"avg_heartrate": averagehr,
|
||||
"max_heartrate": maxhr,
|
||||
"location": locdata,
|
||||
@@ -302,7 +307,7 @@ def createsporttracksworkoutdata(w):
|
||||
"start_time": w.startdatetime.isoformat(),
|
||||
"total_distance": int(w.distance),
|
||||
"duration": duration,
|
||||
"notes": w.notes+'\n from '+w.workoutsource+' via rowsandall.com',
|
||||
"notes": w.notes,
|
||||
"avg_heartrate": averagehr,
|
||||
"max_heartrate": maxhr,
|
||||
"distance": distancedata,
|
||||
|
||||
Reference in New Issue
Block a user