replacing timestamp with call to timestamp
This commit is contained in:
@@ -147,7 +147,7 @@ def add_stroke_data(user,c2id,workoutid,startdatetime,csvfilename,
|
||||
s = "Token expired. Needs to refresh."
|
||||
return custom_exception_handler(401,s)
|
||||
else:
|
||||
starttimeunix = arrow.get(startdatetime).timestamp
|
||||
starttimeunix = arrow.get(startdatetime).timestamp()
|
||||
|
||||
job = myqueue(queue,
|
||||
handle_c2_import_stroke_data,
|
||||
@@ -212,7 +212,8 @@ def get_c2_workouts(rower,do_async=True):
|
||||
rower.user.id,
|
||||
rower.c2token,
|
||||
c2id,
|
||||
counter
|
||||
counter,
|
||||
rower.defaulttimezone
|
||||
)
|
||||
#res = handle_c2_async_workout(alldata,rower.user.id,rower.c2token,c2id,counter)
|
||||
counter = counter+1
|
||||
@@ -296,7 +297,7 @@ def create_async_workout(alldata,user,c2id):
|
||||
cum_time = res[0]
|
||||
lapidx = res[1]
|
||||
|
||||
starttimeunix = arrow.get(startdatetime).timestamp
|
||||
starttimeunix = arrow.get(startdatetime).timestamp()
|
||||
starttimeunix = starttimeunix-cum_time.max()
|
||||
|
||||
unixtime = cum_time+starttimeunix
|
||||
@@ -1194,7 +1195,7 @@ def add_workout_from_data(user,importid,data,strokedata,
|
||||
except KeyError:
|
||||
comments = ''
|
||||
|
||||
starttimeunix = arrow.get(rowdatetime).timestamp
|
||||
starttimeunix = arrow.get(rowdatetime).timestamp()
|
||||
|
||||
res = make_cumvalues(0.1*strokedata['t'])
|
||||
cum_time = res[0]
|
||||
|
||||
Reference in New Issue
Block a user