Optimize browse page facet query
This commit is contained in:
parent
b894188f1a
commit
19e82a34cd
2 changed files with 6 additions and 4 deletions
2
app.py
2
app.py
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue