Rename argument only_linear to linear_only.
This commit is contained in:
parent
faa0e9c7e3
commit
4d224e7d6a
1 changed files with 2 additions and 2 deletions
|
@ -631,9 +631,9 @@ class Epub:
|
||||||
|
|
||||||
# SPINE
|
# SPINE
|
||||||
############################################################################
|
############################################################################
|
||||||
def get_spine_order(self, *, only_linear=False):
|
def get_spine_order(self, *, linear_only=False):
|
||||||
items = self.opf.spine.find_all('itemref')
|
items = self.opf.spine.find_all('itemref')
|
||||||
if only_linear:
|
if linear_only:
|
||||||
items = [x for x in items if x.get('linear') != 'no']
|
items = [x for x in items if x.get('linear') != 'no']
|
||||||
return [x['idref'] for x in items]
|
return [x['idref'] for x in items]
|
||||||
return ids
|
return ids
|
||||||
|
|
Loading…
Reference in a new issue