This commit is contained in:
Kovid Goyal 2011-03-18 11:11:12 -06:00
parent 514d2a4381
commit caab6f506b

View File

@ -623,8 +623,6 @@ class BrowseServer(object):
except: except:
raise cherrypy.HTTPError(404, 'Search: %r not understood'%which) raise cherrypy.HTTPError(404, 'Search: %r not understood'%which)
else: else:
if fm.get(category, {'datatype':None})['datatype'] == 'composite':
cid = cid.decode('utf-8')
all_ids = self.search_cache('') all_ids = self.search_cache('')
if category == 'newest': if category == 'newest':
ids = all_ids ids = all_ids
@ -632,6 +630,8 @@ class BrowseServer(object):
elif category == 'allbooks': elif category == 'allbooks':
ids = all_ids ids = all_ids
else: else:
if fm.get(category, {'datatype':None})['datatype'] == 'composite':
cid = cid.decode('utf-8')
q = category q = category
if q == 'news': if q == 'news':
q = 'tags' q = 'tags'