started with StrokeData POST
This commit is contained in:
@@ -135,16 +135,18 @@ def getrowdata(id=0):
|
||||
|
||||
return rowdata,row
|
||||
|
||||
def prepmultipledata(ids):
|
||||
|
||||
def prepmultipledata(ids,verbose=False):
|
||||
query = sa.text('SELECT DISTINCT workoutid FROM strokedata')
|
||||
with engine.connect() as conn, conn.begin():
|
||||
res = conn.execute(query)
|
||||
res = list(itertools.chain.from_iterable(res.fetchall()))
|
||||
|
||||
res = list(set(ids)-set(res))
|
||||
print "aap", res
|
||||
for id in res:
|
||||
rowdata,row = getrowdata(id=id)
|
||||
if verbose:
|
||||
print id
|
||||
if rowdata:
|
||||
data = dataprep(rowdata.df,id=id,bands=True,barchart=True,otwpower=True)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user