Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-10-31 15:51:13 +01:00
parent 473f2b3cdf
commit 76b757f19b

View File

@@ -2007,9 +2007,9 @@ def read_df_sql(id):
f = 'media/strokedata_{id}.parquet.gz'.format(id=id)
df = pd.read_parquet(f)
except OSError:
rowdata,row = getrowdata(id=ids[0])
rowdata,row = getrowdata(id=id)
if rowdata and len(rowdata.df):
data = dataprep(rowdata.df,id=ids[0],bands=True,otwpower=True,barchart=True)
data = dataprep(rowdata.df,id=id,bands=True,otwpower=True,barchart=True)
df = pd.read_parquet(f)
df = df.fillna(value=0)