mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from trunk
This commit is contained in:
commit
a823f6a473
@ -1010,7 +1010,6 @@ class TagsModel(QAbstractItemModel): # {{{
|
||||
return
|
||||
fm_src = self.db.metadata_for_field(column)
|
||||
for id in ids:
|
||||
vmap = {}
|
||||
label = fm_src['label']
|
||||
if not fm_src['is_custom']:
|
||||
if label == 'authors':
|
||||
|
@ -623,8 +623,6 @@ class BrowseServer(object):
|
||||
except:
|
||||
raise cherrypy.HTTPError(404, 'Search: %r not understood'%which)
|
||||
else:
|
||||
if fm[category]['datatype'] == 'composite':
|
||||
cid = cid.decode('utf-8')
|
||||
all_ids = self.search_cache('')
|
||||
if category == 'newest':
|
||||
ids = all_ids
|
||||
@ -632,6 +630,8 @@ class BrowseServer(object):
|
||||
elif category == 'allbooks':
|
||||
ids = all_ids
|
||||
else:
|
||||
if fm.get(category, {'datatype':None})['datatype'] == 'composite':
|
||||
cid = cid.decode('utf-8')
|
||||
q = category
|
||||
if q == 'news':
|
||||
q = 'tags'
|
||||
|
Loading…
x
Reference in New Issue
Block a user