Private
Public Access
1
0

bug fixes

This commit is contained in:
Sander Roosendaal
2020-06-28 10:15:52 +02:00
parent 0489b25e55
commit 733e697ecf
2 changed files with 2 additions and 2 deletions

View File

@@ -2178,7 +2178,7 @@ def read_cols_df_sql(ids, columns, convertnewtons=True):
try:
df = pd.read_parquet(f,columns=columns)
data.append(df)
except OSError:
except (OSError,IndexError):
rowdata,row = getrowdata(id=id)
if rowdata and len(rowdata.df):
datadf = dataprep(rowdata.df,id=id,bands=True,otwpower=True,barchart=True)

View File

@@ -3134,7 +3134,7 @@ def virtualevent_entry_edit_view(request,id=0,entryid=0):
records = resultobj.objects.filter(
userid = r.id,
race=race
)
).exclude(id=entryid)
try:
record = resultobj.objects.get(id=entryid)