mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 13:44:06 +02:00
Take saved searches out of the command line list_categories
This commit is contained in:
parent
0da8bfa170
commit
c30059200c
1 changed files with 1 additions and 1 deletions
|
|
@ -1054,7 +1054,7 @@ def command_list_categories(args, dbpath):
|
|||
category_data = db.get_categories()
|
||||
data = []
|
||||
categories = [k for k in category_data.keys()
|
||||
if db.metadata_for_field(k)['kind'] != 'user']
|
||||
if db.metadata_for_field(k)['kind'] not in ['user', 'search']]
|
||||
|
||||
categories.sort(cmp=lambda x,y: cmp(x if x[0] != '#' else x[1:],
|
||||
y if y[0] != '#' else y[1:]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue