From ff81d1cb09120bf56fd779355e241e32732514e6 Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Wed, 24 Nov 2021 12:11:34 +0800 Subject: [PATCH] fixed odd orders --- src/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree.py b/src/tree.py index 0412dce..acff1ed 100644 --- a/src/tree.py +++ b/src/tree.py @@ -245,7 +245,7 @@ class TreeWalker: def ensure_node_id(self, config): flag = False if "node_id" not in config or \ - not config["node_id"].startswith(f"{self.tree}-") or \ + not config["node_id"].startswith(f"{self.name}-") or \ config["node_id"] in id_set: new_id = self.gen_node_id() id_set.add(new_id) -- GitLab