mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix #8047 (Saved Searches not working in Web Browser)
This commit is contained in:
parent
a11820ecfd
commit
35bfaab669
@ -556,18 +556,19 @@ class BrowseServer(object):
|
|||||||
ids = self.search_cache('search:"%s"'%which)
|
ids = self.search_cache('search:"%s"'%which)
|
||||||
except:
|
except:
|
||||||
raise cherrypy.HTTPError(404, 'Search: %r not understood'%which)
|
raise cherrypy.HTTPError(404, 'Search: %r not understood'%which)
|
||||||
all_ids = self.search_cache('')
|
|
||||||
if category == 'newest':
|
|
||||||
ids = all_ids
|
|
||||||
hide_sort = 'true'
|
|
||||||
elif category == 'allbooks':
|
|
||||||
ids = all_ids
|
|
||||||
else:
|
else:
|
||||||
q = category
|
all_ids = self.search_cache('')
|
||||||
if q == 'news':
|
if category == 'newest':
|
||||||
q = 'tags'
|
ids = all_ids
|
||||||
ids = self.db.get_books_for_category(q, cid)
|
hide_sort = 'true'
|
||||||
ids = [x for x in ids if x in all_ids]
|
elif category == 'allbooks':
|
||||||
|
ids = all_ids
|
||||||
|
else:
|
||||||
|
q = category
|
||||||
|
if q == 'news':
|
||||||
|
q = 'tags'
|
||||||
|
ids = self.db.get_books_for_category(q, cid)
|
||||||
|
ids = [x for x in ids if x in all_ids]
|
||||||
|
|
||||||
items = [self.db.data._data[x] for x in ids]
|
items = [self.db.data._data[x] for x in ids]
|
||||||
if category == 'newest':
|
if category == 'newest':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user