Optimize browse page facet query

This commit is contained in:
Edward Betts 2019-11-27 12:42:07 +00:00
parent b894188f1a
commit 19e82a34cd
2 changed files with 6 additions and 4 deletions

2
app.py
View file

@ -572,6 +572,8 @@ def get_facets(params):
label = row['objectLabel']['value']
count = int(row['count']['value'])
if pid not in find_more_props:
continue
facets[pid].append({'qid': qid, 'label': label, 'count': count})
return {