Merge branch 'release/v22.4.5'
This commit is contained in:
@@ -150,6 +150,7 @@ class IntervalsIntegration(SyncIntegration):
|
||||
|
||||
def workout_export(self, workout, *args, **kwargs) -> str:
|
||||
token = self.open()
|
||||
dologging('intervals.icu.log', "Exporting workout {id}".format(id=workout.id))
|
||||
|
||||
filename = self.createworkoutdata(workout)
|
||||
if not filename:
|
||||
@@ -192,6 +193,8 @@ class IntervalsIntegration(SyncIntegration):
|
||||
workout.save()
|
||||
|
||||
os.remove(filename)
|
||||
|
||||
dologging('intervals.icu.log', "Exported workout {id}".format(id=workout.id))
|
||||
|
||||
return id
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ def do_sync(w, options, quick=False):
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
dologging("uploads.log", "do_icu_export: {do_icu_export}".format(do_icu_export=do_icu_export))
|
||||
#dologging("uploads.log", "do_icu_export: {do_icu_export}".format(do_icu_export=do_icu_export))
|
||||
|
||||
try:
|
||||
if options['intervalsid'] != 0 and options['intervalsid'] != '': # pragma: no cover
|
||||
@@ -275,6 +275,7 @@ def do_sync(w, options, quick=False):
|
||||
)
|
||||
except NoTokenError:
|
||||
id = 0
|
||||
dologging('intervals.icu.log','NoTokenError')
|
||||
message = "Please connect to Intervals.icu first"
|
||||
except Exception as e:
|
||||
dologging(
|
||||
|
||||
Reference in New Issue
Block a user