untested POST version of stroke_data API
This commit is contained in:
@@ -84,6 +84,14 @@ def rdata(file,rower=rrower()):
|
||||
|
||||
return res
|
||||
|
||||
def testdata(time,distance,pace,spm):
|
||||
t1 = np.issubdtype(time,np.number)
|
||||
t2 = np.issubdtype(distance,np.number)
|
||||
t3 = np.issubdtype(pace,np.number)
|
||||
t4 = np.issubdtype(spm,np.number)
|
||||
|
||||
return t1 and t2 and t3 and t4
|
||||
|
||||
def getrowdata_db(id=0):
|
||||
data = read_df_sql(id)
|
||||
data['pace'] = data['pace']/1.0e6
|
||||
|
||||
Reference in New Issue
Block a user