Private
Public Access
1
0

opening analysis for rowers themselves

This commit is contained in:
2024-12-14 15:53:35 +01:00
parent 8724011f8c
commit 915e562a76
4 changed files with 59 additions and 43 deletions

View File

@@ -156,6 +156,8 @@ def do_sync(w, options, quick=False):
do_icu_export = False
if w.user.intervals_auto_export is True:
do_icu_export = True
if w.workoutsource == 'strava':
do_icu_export = False
else:
try:
do_icu_export = options['upload_to_Intervals']
@@ -208,6 +210,8 @@ def do_sync(w, options, quick=False):
do_c2_export = False
if w.user.c2_auto_export is True:
do_c2_export = True
if w.workoutsource == 'strava':
do_c2_export = False
else:
try:
do_c2_export = options['upload_to_C2'] or do_c2_export
@@ -282,6 +286,8 @@ def do_sync(w, options, quick=False):
try: # pragma: no cover
upload_to_st = options['upload_to_SportTracks'] or do_st_export
do_st_export = upload_to_st
if w.workoutsource == 'strava':
do_st_export = False
except KeyError:
upload_to_st = False
@@ -304,6 +310,8 @@ def do_sync(w, options, quick=False):
do_tp_export = w.user.trainingpeaks_auto_export
try:
upload_to_tp = options['upload_to_TrainingPeaks'] or do_tp_export
if w.workoutsource == 'strava':
do_tp_export = False
do_tp_export = upload_to_tp
except KeyError:
upload_to_st = False