Private
Public Access
1
0

fixing c2 import

This commit is contained in:
Sander Roosendaal
2021-01-21 22:42:24 +01:00
parent 85d4aac34d
commit 8341548aaf
6 changed files with 68 additions and 8 deletions

View File

@@ -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)