quick fix (tbc)
This commit is contained in:
@@ -508,10 +508,11 @@ def make_private(w,options):
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
def do_sync(w,options):
|
def do_sync(w,options):
|
||||||
|
upload_to_strava = options['upload_to_Strava']
|
||||||
try:
|
try:
|
||||||
if options['stravaid'] != 0 and options['stravaid'] != '':
|
if options['stravaid'] != 0 and options['stravaid'] != '':
|
||||||
w.uploadedtostrava = options['stravaid']
|
w.uploadedtostrava = options['stravaid']
|
||||||
options['upload_to_Strava'] = False
|
upload_to_strava = False
|
||||||
w.save()
|
w.save()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
@@ -524,7 +525,7 @@ def do_sync(w,options):
|
|||||||
id = 0
|
id = 0
|
||||||
message = "Something went wrong with the Concept2 sync"
|
message = "Something went wrong with the Concept2 sync"
|
||||||
|
|
||||||
if ('upload_to_Strava' in options and options['upload_to_Strava']) or (w.user.strava_auto_export and ispromember(w.user.user)):
|
if ('upload_to_Strava' in options and upload_to_strava) or (w.user.strava_auto_export and ispromember(w.user.user)):
|
||||||
try:
|
try:
|
||||||
message,id = stravastuff.workout_strava_upload(
|
message,id = stravastuff.workout_strava_upload(
|
||||||
w.user.user,w
|
w.user.user,w
|
||||||
|
|||||||
Reference in New Issue
Block a user