tp fix
This commit is contained in:
@@ -15,7 +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.mytypes import tpmapping, tcxmapping
|
||||
|
||||
from rowers.tasks import check_tp_workout_id, handle_workout_tp_upload
|
||||
|
||||
@@ -68,7 +68,8 @@ class TPIntegration(SyncIntegration):
|
||||
newnotes = 'from '+w.workoutsource+' via rowsandall.com'
|
||||
|
||||
try:
|
||||
row.exporttotcx(tcxfilename, notes=newnotes, sport=tpmapping[w.workouttype])
|
||||
#row.exporttotcx(tcxfilename, notes=newnotes, sport=tcxmapping[w.workouttype])
|
||||
row.exporttotcx(tcxfilename, notes=newnotes, sport=None)
|
||||
except KeyError:
|
||||
row.exporttotcx(tcxfilename, notes=newnotes, sport='other')
|
||||
|
||||
@@ -83,7 +84,8 @@ class TPIntegration(SyncIntegration):
|
||||
handle_workout_tp_upload,
|
||||
workout,
|
||||
thetoken,
|
||||
tcxfilename
|
||||
tcxfilename,
|
||||
tpmapping[workout.workouttype]
|
||||
)
|
||||
return job.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user