adding race map view test and correcting C2 time export
This commit is contained in:
@@ -773,14 +773,12 @@ def createc2workoutdata(w):
|
||||
if workouttype in otwtypes:
|
||||
workouttype = 'water'
|
||||
|
||||
try:
|
||||
startdatetime = w.startdatetime.isoformat()
|
||||
except AttributeError:
|
||||
startdate = datetime.datetime.combine(w.date,datetime.time())
|
||||
|
||||
wendtime = w.startdatetime-datetime.timedelta(seconds=makeseconds(durationstr))
|
||||
|
||||
data = {
|
||||
"type": mytypes.c2mapping[workouttype],
|
||||
"date": w.startdatetime.isoformat(),
|
||||
"date": wendtime.strftime('%Y-%m-%d %H:%M:%S'), #w.startdatetime.isoformat(),
|
||||
"stroke_count": int(row.stroke_count),
|
||||
"timezone": w.timezone,
|
||||
"distance": int(w.distance),
|
||||
|
||||
Reference in New Issue
Block a user