From 7b715be0b308210844a44dc5d4a4f18c6c7a72ed Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Wed, 24 Nov 2021 12:11:37 +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 603a205..77b2b50 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