added links to strava, st, c2 under button
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user