Private
Public Access
1
0

updates on api

This commit is contained in:
Sander Roosendaal
2020-10-19 21:54:58 +02:00
parent 818cfdfe1d
commit 519f1edae4
3 changed files with 29 additions and 2 deletions

View File

@@ -2507,7 +2507,7 @@ def read_df_sql(id):
try:
f = 'media/strokedata_{id}.parquet.gz'.format(id=id)
df = pd.read_parquet(f)
except (OSError,ArrowInvalid):
except (OSError,ArrowInvalid,IndexError):
rowdata,row = getrowdata(id=id)
if rowdata and len(rowdata.df):
data = dataprep(rowdata.df,id=id,bands=True,otwpower=True,barchart=True)