From c94fcbeb9c000dbdc27fd74df3b7ea511c3c2e75 Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Wed, 24 Nov 2021 12:11:35 +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 8317aba..c11832b 100644 --- a/src/tree.py +++ b/src/tree.py @@ -249,7 +249,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