mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 22:53:42 +02:00
Merge branch 'master' of https://github.com/cbhaley/calibre into master
This commit is contained in:
commit
6fcd0e7407
1 changed files with 3 additions and 4 deletions
|
|
@ -529,10 +529,9 @@ def process_one_node(category, collapse_model, book_rating_map, state_map): # {
|
|||
last_ordnum = 0
|
||||
last_c = ' '
|
||||
for idx,tag in enumerate(data[key]):
|
||||
if not tag.sort:
|
||||
c = ' '
|
||||
else:
|
||||
c = icu_upper(tag.sort)
|
||||
# Deal with items that don't have sorts, such as formats
|
||||
t = tag.sort if tag.sort else tag.name
|
||||
c = icu_upper(t) if t else ' '
|
||||
ordnum, ordlen = collation_order(c)
|
||||
if last_ordnum != ordnum:
|
||||
last_c = c[0:ordlen]
|
||||
|
|
|
|||
Loading…
Reference in a new issue