expanded boat types & classes
This commit is contained in:
@@ -36,6 +36,8 @@ from requests import Request, Session
|
||||
|
||||
from utils import myqueue
|
||||
|
||||
from rowers.types import otwtypes
|
||||
|
||||
from rowsandall_app.settings import C2_CLIENT_ID, C2_REDIRECT_URI, C2_CLIENT_SECRET
|
||||
|
||||
from rowers.tasks import handle_c2_import_stroke_data
|
||||
@@ -340,7 +342,7 @@ def createc2workoutdata_as_splits(w):
|
||||
newnotes = 'from '+w.workoutsource+' via rowsandall.com'
|
||||
|
||||
wtype = w.workouttype
|
||||
if wtype in ('other','coastal'):
|
||||
if wtype in otwtypes:
|
||||
wtype = 'water'
|
||||
|
||||
data = {
|
||||
@@ -404,7 +406,7 @@ def createc2workoutdata(w):
|
||||
durationstr = datetime.strptime(str(w.duration),"%H:%M:%S")
|
||||
|
||||
workouttype = w.workouttype
|
||||
if workouttype in ('coastal','other'):
|
||||
if workouttype in otwtypes:
|
||||
workouttype = 'water'
|
||||
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user