fix: Duplicate entries in DocumentTree
This commit is contained in:
parent
26b115654b
commit
99c3469597
|
@ -64,7 +64,7 @@ class DocumentNode():
|
||||||
if file.endswith('.md'):
|
if file.endswith('.md'):
|
||||||
file = file[:-3]
|
file = file[:-3]
|
||||||
|
|
||||||
if file not in children:
|
if file not in [x.name for x in children]:
|
||||||
children.append(DocumentNode(file, []))
|
children.append(DocumentNode(file, []))
|
||||||
|
|
||||||
# With this algorithm they're not properly sorted
|
# With this algorithm they're not properly sorted
|
||||||
|
|
Loading…
Reference in New Issue