Private
Public Access
1
0

added links to strava, st, c2 under button

This commit is contained in:
Sander Roosendaal
2017-02-19 10:45:48 +01:00
parent 2181f69d8b
commit e0b719da4e
4 changed files with 96 additions and 77 deletions

View File

@@ -234,7 +234,7 @@ def handle_stravaexport(f2,workoutname,stravatoken,description=''):
act = client.upload_activity(f2,'tcx',name=workoutname)
try:
res = act.wait(poll_interval=5.0)
res = act.wait(poll_interval=5.0,timeout=30)
message = 'Workout successfully synchronized to Strava'
except:
res = 0
@@ -246,6 +246,7 @@ def handle_stravaexport(f2,workoutname,stravatoken,description=''):
act = client.update_activity(res.id,activity_type='Rowing',description=description)
else:
message = 'Strava upload timed out.'
return (0,message)
return (res.id,message)