added coastal as type, made workouttype sticky
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user