fix: Duplicate entries in DocumentTree

This commit is contained in:
Dendy 2024-02-24 14:05:44 +01:00
parent 26b115654b
commit 99c3469597
1 changed files with 1 additions and 1 deletions

View File

@ -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