mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
...
This commit is contained in:
parent
2dfd24f04c
commit
fab8eb07ab
1 changed files with 2 additions and 1 deletions
|
|
@ -127,6 +127,7 @@ def get_metadata(book_id):
|
|||
return ans
|
||||
|
||||
bids = None
|
||||
first_letter_sort = bool(first_letter_sort)
|
||||
|
||||
for category, is_multiple, is_composite in find_categories(fm):
|
||||
tag_class = create_tag_class(category, fm)
|
||||
|
|
@ -153,7 +154,7 @@ def get_metadata(book_id):
|
|||
cat['is_multiple'] and cat['display'].get('is_names', False)):
|
||||
for item in cats:
|
||||
item.sort = author_to_author_sort(item.sort)
|
||||
cats.sort(key=category_sort_keys[bool(first_letter_sort)][sort_on], reverse=reverse)
|
||||
cats.sort(key=category_sort_keys[first_letter_sort][sort_on], reverse=reverse)
|
||||
categories[category] = cats
|
||||
|
||||
# Needed for legacy databases that have multiple ratings that
|
||||
|
|
|
|||
Loading…
Reference in a new issue