mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
94b72873ec
commit
2dfd24f04c
@ -145,6 +145,7 @@ def get_categories(dbcache, sort='name', book_ids=None, first_letter_sort=False)
|
|||||||
if dt == 'rating':
|
if dt == 'rating':
|
||||||
if category != 'rating':
|
if category != 'rating':
|
||||||
brm = dbcache.fields[category].book_value_map
|
brm = dbcache.fields[category].book_value_map
|
||||||
|
if sort_on == 'name':
|
||||||
sort_on, reverse = 'rating', True
|
sort_on, reverse = 'rating', True
|
||||||
cats = dbcache.fields[category].get_categories(
|
cats = dbcache.fields[category].get_categories(
|
||||||
tag_class, brm, lang_map, book_ids)
|
tag_class, brm, lang_map, book_ids)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user