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 6ae0e309..f15cf389 100644 Binary files a/rowers/tests/testdata/testdata.tcx.gz and b/rowers/tests/testdata/testdata.tcx.gz differ