replacing timestamp with call to timestamp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user