EPUB/MOBI Catalogs: Fix exclusion by tag not working for tags that have spaces in them

This commit is contained in:
Kovid Goyal 2019-01-14 08:37:21 +05:30
parent c1bd466d07
commit 469b633e7e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1021,7 +1021,7 @@ class CatalogBuilder(object):
if self.excluded_tags: if self.excluded_tags:
search_terms = [] search_terms = []
for tag in self.excluded_tags: for tag in self.excluded_tags:
search_terms.append("tag:=%s" % tag) search_terms.append('tags:"=%s"' % tag)
search_phrase = "not (%s)" % " or ".join(search_terms) search_phrase = "not (%s)" % " or ".join(search_terms)
# If a list of ids are provided, don't use search_text # If a list of ids are provided, don't use search_text