mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Ensure empty values are not placed in queries
This commit is contained in:
parent
ae0a45b0be
commit
58eb7ab38a
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ def open_book(book_id, fmt, library_id=None, replace=False):
|
|||
|
||||
|
||||
def push_state(query, replace=False, mode='book_list', call_handler=True):
|
||||
query = {k:query[k] for k in query}
|
||||
query = {k:query[k] for k in query if query[k]}
|
||||
if mode is not 'book_list':
|
||||
query.mode = mode
|
||||
query = encode_query_with_path(query)
|
||||
|
|
|
|||
Loading…
Reference in a new issue