hotfix fit functionality, strava timeout, team invite
This commit is contained in:
@@ -235,14 +235,18 @@ def handle_stravaexport(f2,workoutname,stravatoken,description=''):
|
||||
act = client.upload_activity(f2,'tcx',name=workoutname)
|
||||
try:
|
||||
res = act.wait(poll_interval=5.0)
|
||||
message = 'Workout successfully synchronized to Strava'
|
||||
except:
|
||||
res = 0
|
||||
|
||||
|
||||
|
||||
# description doesn't work yet. Have to wait for stravalib to update
|
||||
act = client.update_activity(res.id,activity_type='Rowing',description=description)
|
||||
if res:
|
||||
act = client.update_activity(res.id,activity_type='Rowing',description=description)
|
||||
else:
|
||||
message = 'Strava upload timed out.'
|
||||
|
||||
return res.id
|
||||
return (res.id,message)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user