/browse: Fix handling of user categories

This commit is contained in:
Kovid Goyal 2010-10-16 10:21:26 -06:00
parent d4d2f2b2e3
commit 7f3212585a

View File

@ -133,7 +133,10 @@ def get_category_items(category, items, db, datatype): # {{{
desc = ''
if i.count > 0:
desc += '[' + _('%d books')%i.count + ']'
href = '/browse/matches/%s/%s'%(category, id_)
q = i.category
if not q:
q = category
href = '/browse/matches/%s/%s'%(q, id_)
return templ.format(xml(name), rating,
xml(desc), xml(href), rstring)