Increase facet limit.

This commit is contained in:
Edward Betts 2019-12-18 19:03:54 +00:00
parent 1354743ded
commit 6f66e85b1e

2
app.py
View file

@ -767,7 +767,7 @@ def get_db_items(params):
def get_db_facets(params): def get_db_facets(params):
t = aliased(Triple) t = aliased(Triple)
q = database.session.query(t.predicate_id, func.count().label('count'), t.object_id) q = database.session.query(t.predicate_id, func.count().label('count'), t.object_id)
facet_limit = 15 facet_limit = 18
for pid, qid in params: for pid, qid in params:
q = (q.join(Triple, t.subject_id == Triple.subject_id, aliased=True) q = (q.join(Triple, t.subject_id == Triple.subject_id, aliased=True)