fixed c2 export
This commit is contained in:
@@ -17,6 +17,7 @@ from rowers.mytypes import otwtypes
|
||||
from iso8601 import ParseError
|
||||
|
||||
import numpy
|
||||
import json
|
||||
|
||||
from rowsandall_app.settings import (
|
||||
C2_CLIENT_ID, C2_REDIRECT_URI, C2_CLIENT_SECRET
|
||||
@@ -415,9 +416,10 @@ def createc2workoutdata(w):
|
||||
p = np.clip(p,0,3600)
|
||||
if w.workouttype == 'bike':
|
||||
p = 2.0*p
|
||||
# t = t.astype(int)
|
||||
# d = d.astype(int)
|
||||
# p = p.astype(int)
|
||||
|
||||
t = t.astype(int)
|
||||
d = d.astype(int)
|
||||
p = p.astype(int)
|
||||
spm = row.df[' Cadence (stokes/min)'].astype(int)
|
||||
spm[0] = spm[1]
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user