mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
/browse: Fix handling of user categories
This commit is contained in:
parent
d4d2f2b2e3
commit
7f3212585a
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user