From 80207643cb8859eef85e2f7d8eaec386a29a94fe Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 19 Jan 2021 06:14:49 +0100 Subject: [PATCH] fix #594 --- rowers/c2stuff.py | 3 +++ rowers/tasks.py | 1 + 2 files changed, 4 insertions(+) diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index 413847e6..99bc645d 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -277,6 +277,7 @@ def create_async_workout(alldata,user,c2id): lapidx = res[1] starttimeunix = arrow.get(startdatetime).timestamp + starttimeunix = starttimeunix-cum_time.max() unixtime = cum_time+starttimeunix # unixtime[0] = starttimeunix @@ -1134,6 +1135,8 @@ def add_workout_from_data(user,importid,data,strokedata, cum_time = res[0] lapidx = res[1] + starttimeunix = starttimeunix - cum_time.max() + unixtime = cum_time+starttimeunix # unixtime[0] = starttimeunix seconds = 0.1*strokedata.loc[:,'t'] diff --git a/rowers/tasks.py b/rowers/tasks.py index 5fc39a65..5bc86754 100644 --- a/rowers/tasks.py +++ b/rowers/tasks.py @@ -2781,6 +2781,7 @@ def handle_c2_async_workout(alldata,userid,c2token,c2id,debug=False,**kwargs): lapidx = res[1] starttimeunix = arrow.get(startdatetime).timestamp + starttimeunix = starttimeunix-cum_time.max() unixtime = cum_time+starttimeunix # unixtime[0] = starttimeunix