From 62fce266516c5fcf36547e30fbd3db4c56b535bf Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 28 May 2021 14:57:35 +0200 Subject: [PATCH] Bugfix extended search term with excluded series/shelfs --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 998d1779..ba3c5ae3 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1211,7 +1211,7 @@ def extend_search_term(searchterm, for key, db_element in elements.items(): tag_names = calibre_db.session.query(db_element).filter(db_element.id.in_(tags['include_' + key])).all() searchterm.extend(tag.name for tag in tag_names) - tag_names = calibre_db.session.query(db_element).filter(db.Tags.id.in_(tags['exclude_' + key])).all() + tag_names = calibre_db.session.query(db_element).filter(db_element.id.in_(tags['exclude_' + key])).all() searchterm.extend(tag.name for tag in tag_names) language_names = calibre_db.session.query(db.Languages). \ filter(db.Languages.id.in_(tags['include_language'])).all()