fix
This commit is contained in:
@@ -15,6 +15,7 @@ from rowingdata import rowingdata
|
|||||||
from rowers.rower_rules import is_workout_user
|
from rowers.rower_rules import is_workout_user
|
||||||
import time
|
import time
|
||||||
from django_rq import job
|
from django_rq import job
|
||||||
|
from rowers.mytypes import tpmapping
|
||||||
|
|
||||||
from rowers.tasks import check_tp_workout_id, handle_workout_tp_upload
|
from rowers.tasks import check_tp_workout_id, handle_workout_tp_upload
|
||||||
|
|
||||||
@@ -66,7 +67,7 @@ class TPIntegration(SyncIntegration):
|
|||||||
except TypeError:
|
except TypeError:
|
||||||
newnotes = 'from '+w.workoutsource+' via rowsandall.com'
|
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
|
return tcxfilename
|
||||||
|
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user