Private
Public Access
1
0

fixes fixes

This commit is contained in:
2025-01-25 14:56:37 +01:00
parent 7190d97d29
commit 3c68672678
6 changed files with 20 additions and 10 deletions

View File

@@ -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