From ebaf588550b986aa10c5f0cd48cabd68c10a3fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Gy=C3=B6rgyi?= Date: Tue, 7 May 2024 16:54:07 +0200 Subject: [PATCH] Fix the collection of parents in TagStore's XML export. The original version looped over only the root elements when collecting parent-child relations. Now, the code uses the 'lookup' dictionary that contains every tag. --- GTG/core/tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GTG/core/tags.py b/GTG/core/tags.py index c2d5dd5a0..c4f9d82ac 100644 --- a/GTG/core/tags.py +++ b/GTG/core/tags.py @@ -314,7 +314,7 @@ def to_xml(self) -> Element: parent_map = {} - for tag in self.data: + for tag in self.lookup.values(): for child in tag.children: parent_map[child.id] = tag.id