mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e326c63498
commit
156881728f
@ -693,7 +693,7 @@ class Indexer(object): # {{{
|
|||||||
|
|
||||||
|
|
||||||
# Remove empty indices
|
# Remove empty indices
|
||||||
indices = [x for x in indices if x[0].length > 0]
|
indices = [x for x in indices if x.length > 0]
|
||||||
|
|
||||||
# Reset lengths in case any were removed
|
# Reset lengths in case any were removed
|
||||||
for i, index in enumerate(indices):
|
for i, index in enumerate(indices):
|
||||||
@ -705,7 +705,7 @@ class Indexer(object): # {{{
|
|||||||
|
|
||||||
# Set index and depth values
|
# Set index and depth values
|
||||||
for index, x in enumerate(indices):
|
for index, x in enumerate(indices):
|
||||||
x[0].index = index
|
x.index = index
|
||||||
|
|
||||||
return indices
|
return indices
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user