mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
...
This commit is contained in:
commit
f3d8ee16cc
2 changed files with 3 additions and 2 deletions
|
|
@ -668,7 +668,7 @@ def get_categories(self, sort_on_count=False, ids=None, icon_map=None):
|
|||
#### First, build the standard and custom-column categories ####
|
||||
for category in tb_cats.keys():
|
||||
cat = tb_cats[category]
|
||||
if not cat['is_category'] or not cat['kind'] == 'field':
|
||||
if not cat['is_category'] or cat['kind'] in ['user', 'search']:
|
||||
continue
|
||||
tn = cat['table']
|
||||
categories[category] = [] #reserve the position in the ordered list
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@ class FieldMetadata(dict):
|
|||
|
||||
is_category: is a tag browser category. If true, then:
|
||||
table: name of the db table used to construct item list
|
||||
column: name of the column in the connection table to join on
|
||||
column: name of the column in the normalized table to join on
|
||||
link_column: name of the column in the connection table to join on
|
||||
If these are None, then the category constructor must know how
|
||||
to build the item list (e.g., formats).
|
||||
The order below is the order that the categories will
|
||||
|
|
|
|||
Loading…
Reference in a new issue