Private
Public Access
1
0

fixed c2 export

This commit is contained in:
Sander Roosendaal
2019-03-14 08:24:47 +01:00
parent daf9692d39
commit fb5e0d38a8
3 changed files with 7 additions and 4 deletions

View File

@@ -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: