diff --git a/cps/db.py b/cps/db.py index c08a3ea49..2bc0fc51c 100644 --- a/cps/db.py +++ b/cps/db.py @@ -624,6 +624,8 @@ class CalibreDB(): .join(*join, isouter=True) \ .filter(db_filter) \ .filter(self.common_filters(allow_show_archived)) + entries = list() + pagination = list() try: pagination = Pagination(page, pagesize, len(query.all()))