1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-17 23:34:53 +00:00

Bugfix search in books list

Fix renaming upper to lowercase letters
Update test results
This commit is contained in:
Ozzie Isaacs 2021-11-21 13:23:27 +01:00
parent 1b8bd27b3c
commit cbb9edac19
3 changed files with 2425 additions and 300 deletions

View File

@ -114,7 +114,7 @@ def search_objects_add(db_book_object, db_type, input_elements):
type_elements = c_elements.value
else:
type_elements = c_elements.name
if inp_element.lower() == type_elements.lower(): # Lowercase check
if inp_element == type_elements:
found = True
break
if not found:

View File

@ -831,7 +831,7 @@ def list_books():
books = calibre_db.session.query(db.Books).filter(calibre_db.common_filters()).all()
entries = calibre_db.get_checkbox_sorted(books, state, off, limit, order)
elif search:
entries, filtered_count, __ = calibre_db.get_search_results(search, off, order, limit, *join)
entries, filtered_count, __ = calibre_db.get_search_results(search, off, [order,''], limit, *join)
else:
entries, __, __ = calibre_db.fill_indexpage((int(off) / (int(limit)) + 1), limit, db.Books, True, order, *join)

File diff suppressed because it is too large Load Diff