fixed an issue where the lowering and stripping of the search term was not saved

This commit is contained in:
Daniel 2023-05-10 18:55:40 +02:00
parent af40feee86
commit 932c7968ce
1 changed files with 1 additions and 1 deletions

View File

@ -887,7 +887,7 @@ class CalibreDB:
.filter(and_(Books.authors.any(and_(*q)), func.lower(Books.title).ilike("%" + title + "%"))).first()
def search_query(self, term, config, *join):
term.strip().lower()
term=term.strip().lower()
self.session.connection().connection.connection.create_function("lower", 1, lcase)
self.session.connection().connection.connection.create_function("partial_ratio", 2, partial_ratio)
q = list()