From c0b2e886d2343a2d69cd6d5b6912b3be92ca9e99 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Wed, 21 Apr 2021 19:28:22 +0200 Subject: [PATCH] bugfix books list with selected books and stored on state --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index e01b4b22..9b56babf 100644 --- a/cps/web.py +++ b/cps/web.py @@ -788,7 +788,7 @@ def list_books(): if state: if search: - books = calibre_db.search_query(search) + books = calibre_db.search_query(search).all() filtered_count = len(books) else: books = calibre_db.session.query(db.Books).filter(calibre_db.common_filters()).all()