From 6f1e78b9a3b9f25fe22f51f96ddbf53fcacb7086 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 16 Oct 2021 20:43:22 +0200 Subject: [PATCH] Bugfix book list with language restriction or archived books --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 44fe2906..0627d490 100644 --- a/cps/web.py +++ b/cps/web.py @@ -804,7 +804,7 @@ def list_books(): elif not state: order = [db.Books.timestamp.desc()] - total_count = filtered_count = calibre_db.session.query(db.Books).count() + total_count = filtered_count = calibre_db.session.query(db.Books).filter(calibre_db.common_filters(False)).count() if state is not None: if search: