fixes fixes
This commit is contained in:
@@ -130,6 +130,9 @@ def make_plot(r, w, f1, f2, plottype, title, imagename='', plotnr=0):
|
||||
|
||||
|
||||
def do_sync(w, options, quick=False):
|
||||
if w.duplicate:
|
||||
return 0
|
||||
|
||||
do_strava_export = False
|
||||
if w.user.strava_auto_export is True:
|
||||
do_strava_export = True
|
||||
@@ -236,8 +239,6 @@ def do_sync(w, options, quick=False):
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
if w.duplicate:
|
||||
return 0
|
||||
|
||||
if do_c2_export: # pragma: no cover
|
||||
dologging('c2_log.log','Exporting workout to C2 for user {user}'.format(user=w.user.user.id))
|
||||
@@ -305,7 +306,6 @@ def do_sync(w, options, quick=False):
|
||||
except NoTokenError:
|
||||
dologging('st_export.log','No Token Error')
|
||||
|
||||
return 0
|
||||
|
||||
do_tp_export = w.user.trainingpeaks_auto_export
|
||||
try:
|
||||
@@ -315,6 +315,8 @@ def do_sync(w, options, quick=False):
|
||||
do_tp_export = upload_to_tp
|
||||
except KeyError:
|
||||
upload_to_st = False
|
||||
|
||||
|
||||
if do_tp_export:
|
||||
try:
|
||||
tp_integration = TPIntegration(w.user.user)
|
||||
@@ -327,7 +329,6 @@ def do_sync(w, options, quick=False):
|
||||
)
|
||||
except NoTokenError:
|
||||
dologging('tp_export.log','No Token Error')
|
||||
return 0
|
||||
|
||||
# we do Strava last.
|
||||
if do_strava_export: # pragma: no cover
|
||||
|
||||
Reference in New Issue
Block a user