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