mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Annotations browser: Fix a typo that broke sorting for highlights
This commit is contained in:
parent
6a0f5a3580
commit
3106b4eb4b
@ -126,8 +126,8 @@ def sorted_items(items):
|
|||||||
cfi = x.get('start_cfi')
|
cfi = x.get('start_cfi')
|
||||||
if cfi:
|
if cfi:
|
||||||
spine_idx = x.get('spine_index', def_spine)
|
spine_idx = x.get('spine_index', def_spine)
|
||||||
cfi = f'/{spine_idx}/{cfi}'
|
cfi = f'/{spine_idx}{cfi}'
|
||||||
return cfi_sort_key(cfi, only_path=False)
|
return cfi_sort_key(cfi)
|
||||||
elif atype == 'bookmark':
|
elif atype == 'bookmark':
|
||||||
if x.get('pos_type') == 'epubcfi':
|
if x.get('pos_type') == 'epubcfi':
|
||||||
return cfi_sort_key(x['pos'], only_path=False)
|
return cfi_sort_key(x['pos'], only_path=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user