From 41abcb59d0defcf978614a586fa04e6619bea4eb Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 12 Dec 2024 16:50:00 +0100 Subject: [PATCH] fix --- rowers/integrations/trainingpeaks.py | 3 ++- rowers/tests/testdata/testdata.tcx.gz | Bin 3999 -> 3999 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rowers/integrations/trainingpeaks.py b/rowers/integrations/trainingpeaks.py index efe98532..8dbefd35 100644 --- a/rowers/integrations/trainingpeaks.py +++ b/rowers/integrations/trainingpeaks.py @@ -15,6 +15,7 @@ from rowingdata import rowingdata from rowers.rower_rules import is_workout_user import time from django_rq import job +from rowers.mytypes import tpmapping from rowers.tasks import check_tp_workout_id, handle_workout_tp_upload @@ -66,7 +67,7 @@ class TPIntegration(SyncIntegration): except TypeError: newnotes = 'from '+w.workoutsource+' via rowsandall.com' - row.exporttotcx(tcxfilename, notes=newnotes, sport=tpmapping(w.workouttype)) + row.exporttotcx(tcxfilename, notes=newnotes, sport=tpmapping[w.workouttype]) return tcxfilename diff --git a/rowers/tests/testdata/testdata.tcx.gz b/rowers/tests/testdata/testdata.tcx.gz index 6ae0e30902e4a847a9bea105dfbe010424bba57f..f15cf38957d0b2a3b4cba860a3eabe8396f81f14 100644 GIT binary patch delta 258 zcmV+d0sa1;ADKHV9>7XbVJk5)In*gyH*V>*7YL%rUl=kQ%Z*BN8m0L>Dc?*IS* delta 258 zcmV+d0sa1;ADH|EdRpVs^D zkG{J~951fk?)zhx-kz(A*V}IMygNJFJ+1U{y*Yi}4P82Kw|~15mG{RTee-g7adCCy zHTmZ9@@#$54e6&}zZlo&{^VroyKi5v&z@iZ++WiBm=3-1aNcft()}l0GCK=#ZhroB zxAi7%_VRwe-G=K&`_cK2o~4^U{<%NvyKSF1