From 99c34695974a286c3e447257706b9c06a0e93b88 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Sat, 24 Feb 2024 14:05:44 +0100 Subject: [PATCH] fix: Duplicate entries in DocumentTree --- src/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.py b/src/files.py index f02d875..fc73311 100644 --- a/src/files.py +++ b/src/files.py @@ -64,7 +64,7 @@ class DocumentNode(): if file.endswith('.md'): file = file[:-3] - if file not in children: + if file not in [x.name for x in children]: children.append(DocumentNode(file, [])) # With this algorithm they're not properly sorted