Private
Public Access
1
0

hotfix fit functionality, strava timeout, team invite

This commit is contained in:
Sander Roosendaal
2017-02-19 09:29:00 +01:00
parent d4daa8c924
commit 35e853aea1
4 changed files with 13 additions and 5 deletions

View File

@@ -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)