Re-apply db_filter

Accidentally removed when the language and content filters were moved to `common_filters`.
This commit is contained in:
Jonathan Rehm 2017-08-29 07:09:25 -07:00
parent a8b53ab38a
commit 8e1cfa1cbf

View File

@ -528,7 +528,7 @@ def fill_indexpage(page, database, db_filter, order):
pagination = Pagination(page, config.config_books_per_page,
len(db.session.query(database)
.filter(db_filter).filter(common_filters()).all()))
entries = db.session.query(database).filter(common_filters())\
entries = db.session.query(database).filter(db_filter).filter(common_filters())\
.order_by(order).offset(off).limit(config.config_books_per_page)
return entries, random, pagination