This commit is contained in:
joBr99
2022-03-27 11:34:54 +02:00
committed by GitHub
parent 3742140363
commit 6826fc27e9

View File

@@ -77,6 +77,12 @@ class PageNode(object):
def get_all_item_names(self, recursive=True):
items = []
# current page
if type(self.data) is dict:
items.append(self.data.get("item", next(iter(self.data))))
else:
items.append(self.data)
# childs of page
for i in self.childs:
if len(i.childs) > 0:
if recursive: