Commit 8e1cfa1c authored by Jonathan Rehm's avatar Jonathan Rehm

Re-apply `db_filter`

Accidentally removed when the language and content filters were moved to `common_filters`.
parent a8b53ab3
...@@ -528,7 +528,7 @@ def fill_indexpage(page, database, db_filter, order): ...@@ -528,7 +528,7 @@ def fill_indexpage(page, database, db_filter, order):
pagination = Pagination(page, config.config_books_per_page, pagination = Pagination(page, config.config_books_per_page,
len(db.session.query(database) len(db.session.query(database)
.filter(db_filter).filter(common_filters()).all())) .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) .order_by(order).offset(off).limit(config.config_books_per_page)
return entries, random, pagination return entries, random, pagination
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment