Private
Public Access
1
0

replacing timestamp with call to timestamp

This commit is contained in:
Sander Roosendaal
2021-03-01 08:59:13 +01:00
parent c801dc4d93
commit 33188f3322
13 changed files with 28 additions and 26 deletions

View File

@@ -1401,7 +1401,7 @@ def create_row_df(r,distance,duration,startdatetime,workouttype='rower',
if nr_strokes == 0:
nr_strokes = 100
unixstarttime = arrow.get(startdatetime).timestamp
unixstarttime = arrow.get(startdatetime).timestamp()
if not avgspm:
@@ -2286,7 +2286,7 @@ def new_workout_from_df(r, df,
df.rename(columns=columndict, inplace=True)
#starttimeunix = mktime(startdatetime.utctimetuple())
starttimeunix = arrow.get(startdatetime).timestamp
starttimeunix = arrow.get(startdatetime).timestamp()
df[' ElapsedTime (sec)'] = df['TimeStamp (sec)']
df['TimeStamp (sec)'] = df['TimeStamp (sec)'] + starttimeunix