Private
Public Access
1
0

added coastal as type, made workouttype sticky

This commit is contained in:
Sander Roosendaal
2017-07-03 15:50:10 +02:00
parent e1b468d4da
commit cef4a6e818
4 changed files with 25 additions and 5 deletions

View File

@@ -247,8 +247,12 @@ def createc2workoutdata_as_splits(w):
except TypeError:
newnotes = 'from '+w.workoutsource+' via rowsandall.com'
wtype = w.workouttype
if wtype in ('other','coastal'):
wtype = 'water'
data = {
"type": w.workouttype,
"type": wtype,
"date": w.startdatetime.isoformat(),
"distance": int(w.distance),
"time": int(10*makeseconds(durationstr)),