Private
Public Access
1
0

expanded boat types & classes

This commit is contained in:
Sander Roosendaal
2018-06-07 00:50:24 +02:00
parent 657ee8b467
commit 38a201e7e7
9 changed files with 128 additions and 74 deletions

View File

@@ -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 = {