1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-24 17:10:31 +00:00

Fix for #66 advanced search

This commit is contained in:
OzzieIsaacs 2016-10-03 12:08:34 +02:00
parent 7f033e9fe3
commit 753a0a82a1

View File

@ -489,8 +489,10 @@ def advanced_search():
q = db.session.query(db.Books)
include_tag_inputs = request.args.getlist('include_tag')
exclude_tag_inputs = request.args.getlist('exclude_tag')
author_name = request.args.get("author_name").strip()
book_title = request.args.get("book_title").strip()
author_name = request.args.get("author_name")
book_title = request.args.get("book_title")
if author_name: author_name=author_name.strip()
if book_title : book_title=book_title.strip()
if include_tag_inputs or exclude_tag_inputs or author_name or book_title:
searchterm = []
searchterm.extend((author_name, book_title))