From 7fcc033ffb9ab84e85ab909e7ad740bab8171cbd Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Mon, 8 Nov 2021 11:11:02 +0800 Subject: [PATCH] default children if empty --- src/tree.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tree.py b/src/tree.py index bafd545..c36a946 100644 --- a/src/tree.py +++ b/src/tree.py @@ -213,6 +213,8 @@ class TreeWalker: config = { "node_id": self.gen_node_id(), "keywords": [], + "children":[], + "export":[] } dump_json(config_path, config, exist_ok=True, override=True) else: -- GitLab