fixes fixes
This commit is contained in:
@@ -79,13 +79,17 @@ class TPIntegration(SyncIntegration):
|
||||
def workout_export(self, workout, *args, **kwargs) -> str:
|
||||
thetoken = self.open()
|
||||
tcxfilename = self.createworkoutdata(workout)
|
||||
try:
|
||||
wtype = tpmapping[workout.workouttype]
|
||||
except KeyError:
|
||||
wtype = 'rowing'
|
||||
job = myqueue(
|
||||
queue,
|
||||
handle_workout_tp_upload,
|
||||
workout,
|
||||
thetoken,
|
||||
tcxfilename,
|
||||
tpmapping[workout.workouttype]
|
||||
wtype
|
||||
)
|
||||
return job.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user