Private
Public Access
1
0

add strava indoor tag

This commit is contained in:
2024-11-13 18:42:47 +01:00
parent 78af6038d0
commit 3b499be407
2 changed files with 6 additions and 2 deletions

View File

@@ -917,16 +917,20 @@ def handle_strava_sync(stravatoken,
workout.uploadedtostrava = res.id
workout.save()
record = create_or_update_syncrecord(workout.user, workout, stravaid=res.id)
trainer = False
if workout.workouttype in mytypes.otetypes:
trainer = True
try:
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(
id=workoutid,
type=activity_type
))
except TypeError: # pragma: no cover
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(
id=workoutid,
type=activity_type

Binary file not shown.