hotfix
This commit is contained in:
@@ -351,10 +351,8 @@ def handle_stravaexport(f2,workoutname,stravatoken,description='',
|
||||
# w = Workout.objects.get(id=workoutid)
|
||||
client = stravalib.Client(access_token=stravatoken)
|
||||
|
||||
try:
|
||||
act = client.upload_activity(f2,'tcx.gz',name=workoutname)
|
||||
except:
|
||||
return {0,'Strava upload failed'}
|
||||
act = client.upload_activity(f2,'tcx.gz',name=workoutname)
|
||||
|
||||
try:
|
||||
res = act.wait(poll_interval=5.0,timeout=30)
|
||||
message = 'Workout successfully synchronized to Strava'
|
||||
|
||||
Reference in New Issue
Block a user