This commit is contained in:
Johannes
2022-03-27 11:34:54 +02:00
committed by GitHub
parent 33afd31d8f
commit f78e03e5ec

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: