add strava indoor tag
This commit is contained in:
@@ -917,16 +917,20 @@ def handle_strava_sync(stravatoken,
|
|||||||
workout.uploadedtostrava = res.id
|
workout.uploadedtostrava = res.id
|
||||||
workout.save()
|
workout.save()
|
||||||
record = create_or_update_syncrecord(workout.user, workout, stravaid=res.id)
|
record = create_or_update_syncrecord(workout.user, workout, stravaid=res.id)
|
||||||
|
trainer = False
|
||||||
|
if workout.workouttype in mytypes.otetypes:
|
||||||
|
trainer = True
|
||||||
try:
|
try:
|
||||||
act = client.update_activity(res.id, activity_type=activity_type,
|
act = client.update_activity(res.id, activity_type=activity_type,
|
||||||
description=description, device_name='Rowsandall.com')
|
description=description, device_name='Rowsandall.com',
|
||||||
|
trainer=trainer)
|
||||||
dologging('strava_export_log.log', 'Updating activity {id} to {type}'.format(
|
dologging('strava_export_log.log', 'Updating activity {id} to {type}'.format(
|
||||||
id=workoutid,
|
id=workoutid,
|
||||||
type=activity_type
|
type=activity_type
|
||||||
))
|
))
|
||||||
except TypeError: # pragma: no cover
|
except TypeError: # pragma: no cover
|
||||||
act = client.update_activity(res.id, activity_type=activity_type,
|
act = client.update_activity(res.id, activity_type=activity_type,
|
||||||
description=description)
|
description=description, trainer=trainer)
|
||||||
dologging('strava_export_log.log', 'Updating activity {id} to {type}'.format(
|
dologging('strava_export_log.log', 'Updating activity {id} to {type}'.format(
|
||||||
id=workoutid,
|
id=workoutid,
|
||||||
type=activity_type
|
type=activity_type
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user