Private
Public Access
1
0

adding race map view test and correcting C2 time export

This commit is contained in:
Sander Roosendaal
2021-04-13 08:10:14 +02:00
parent b9e573ce23
commit 5b199a8b07
6 changed files with 20 additions and 11 deletions

View File

@@ -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),