fixing c2 import
This commit is contained in:
@@ -524,8 +524,6 @@ def make_private(w,options):
|
||||
return 1
|
||||
|
||||
def do_sync(w,options, quick=False):
|
||||
if w.duplicate:
|
||||
return 0
|
||||
|
||||
try:
|
||||
upload_to_strava = options['upload_to_Strava']
|
||||
@@ -553,8 +551,6 @@ def do_sync(w,options, quick=False):
|
||||
except KeyError:
|
||||
upload_to_c2 = False
|
||||
|
||||
|
||||
|
||||
try:
|
||||
if options['c2id'] != 0 and options['c2id'] != '':
|
||||
w.uploadedtoc2 = options['c2id']
|
||||
@@ -563,6 +559,9 @@ def do_sync(w,options, quick=False):
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
if w.duplicate:
|
||||
return 0
|
||||
|
||||
if ('upload_to_C2' in options and upload_to_c2) or (w.user.c2_auto_export):
|
||||
try:
|
||||
message,id = c2stuff.workout_c2_upload(w.user.user,w,asynchron=True)
|
||||
|
||||
Reference in New Issue
Block a user