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