1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-24 11:57:40 +00:00

Fix for (#2802) search request fails with error after browser session closed and currently returns all results

This commit is contained in:
Ozzie Isaacs
2023-06-05 14:41:03 +02:00
parent 33e35eeb52
commit 860443079d
2 changed files with 14 additions and 8 deletions

View File

@@ -396,7 +396,7 @@ def render_books_list(data, sort_param, book_id, page):
elif data == "archived":
return render_archived_books(page, order)
elif data == "search":
term = (request.args.get('query') or '')
term = request.args.get('query', None)
offset = int(int(config.config_books_per_page) * (page - 1))
return render_search_results(term, offset, order, config.config_books_per_page)
elif data == "advsearch":