From 9954d1d356f736c74b96043d0c2842c5f2e7bd57 Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Wed, 3 Nov 2021 12:31:44 +0800 Subject: [PATCH] fixed prefix --- .../1.GIT\345\205\245\351\227\250/config.json" | 2 +- .../config.json" | 2 +- .../config.json" | 2 +- .../config.json" | 2 +- data/config.json | 2 +- data/tree.json | 12 ++++++------ src/tree.py | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git "a/data/1.toolchains\345\210\235\351\230\266/1.GIT\345\205\245\351\227\250/config.json" "b/data/1.toolchains\345\210\235\351\230\266/1.GIT\345\205\245\351\227\250/config.json" index 792ef9c..583e99b 100644 --- "a/data/1.toolchains\345\210\235\351\230\266/1.GIT\345\205\245\351\227\250/config.json" +++ "b/data/1.toolchains\345\210\235\351\230\266/1.GIT\345\205\245\351\227\250/config.json" @@ -1,5 +1,5 @@ { "keywords": [], - "node_id": "tc-ca61bc935c5d40239707de30f68a4444", + "node_id": "toolchains-898c51077b934818b94f56b459c14965", "title": "GIT入门" } \ No newline at end of file diff --git "a/data/1.toolchains\345\210\235\351\230\266/config.json" "b/data/1.toolchains\345\210\235\351\230\266/config.json" index d1b3f42..f1b73df 100644 --- "a/data/1.toolchains\345\210\235\351\230\266/config.json" +++ "b/data/1.toolchains\345\210\235\351\230\266/config.json" @@ -1,5 +1,5 @@ { "keywords": [], - "node_id": "tc-e314213fdbfc445285991968b8b886eb", + "node_id": "toolchains-87f33f689f5e4f05a65f344faa2022cb", "title": "toolchains初阶" } \ No newline at end of file diff --git "a/data/2.toolchains\344\270\255\351\230\266/config.json" "b/data/2.toolchains\344\270\255\351\230\266/config.json" index c7ad3c7..1d95568 100644 --- "a/data/2.toolchains\344\270\255\351\230\266/config.json" +++ "b/data/2.toolchains\344\270\255\351\230\266/config.json" @@ -1,5 +1,5 @@ { "keywords": [], - "node_id": "tc-e86748361c424ab28f0ed3ea4a56f652", + "node_id": "toolchains-979177e2db87470cb604783444e47175", "title": "toolchains中阶" } \ No newline at end of file diff --git "a/data/3.toolchains\351\253\230\351\230\266/config.json" "b/data/3.toolchains\351\253\230\351\230\266/config.json" index b02b487..39df388 100644 --- "a/data/3.toolchains\351\253\230\351\230\266/config.json" +++ "b/data/3.toolchains\351\253\230\351\230\266/config.json" @@ -1,5 +1,5 @@ { "keywords": [], - "node_id": "tc-b2bc70f02a614ca7adac587f37f98acb", + "node_id": "toolchains-86e5c506fc34422491c049db4c45e39e", "title": "toolchains高阶" } \ No newline at end of file diff --git a/data/config.json b/data/config.json index 8a01d9a..4c0eb05 100644 --- a/data/config.json +++ b/data/config.json @@ -1,6 +1,6 @@ { "tree_name": "toolchains", "keywords": [], - "node_id": "tc-6b7817c003af4f2fb8f53367b6ae0bb5", + "node_id": "toolchains-adef561f31da4077ade16720641aea78", "title": "Tool Chains" } \ No newline at end of file diff --git a/data/tree.json b/data/tree.json index fc8cb27..a1a79a8 100644 --- a/data/tree.json +++ b/data/tree.json @@ -1,16 +1,16 @@ { - "Toolchains": { - "node_id": "tc-6b7817c003af4f2fb8f53367b6ae0bb5", + "toolchains": { + "node_id": "toolchains-adef561f31da4077ade16720641aea78", "keywords": [], "children": [ { "toolchains初阶": { - "node_id": "tc-e314213fdbfc445285991968b8b886eb", + "node_id": "toolchains-87f33f689f5e4f05a65f344faa2022cb", "keywords": [], "children": [ { "GIT入门": { - "node_id": "tc-ca61bc935c5d40239707de30f68a4444", + "node_id": "toolchains-898c51077b934818b94f56b459c14965", "keywords": [], "children": [] } @@ -20,14 +20,14 @@ }, { "toolchains中阶": { - "node_id": "tc-e86748361c424ab28f0ed3ea4a56f652", + "node_id": "toolchains-979177e2db87470cb604783444e47175", "keywords": [], "children": [] } }, { "toolchains高阶": { - "node_id": "tc-b2bc70f02a614ca7adac587f37f98acb", + "node_id": "toolchains-86e5c506fc34422491c049db4c45e39e", "keywords": [], "children": [] } diff --git a/src/tree.py b/src/tree.py index 07fb657..1dff2c0 100644 --- a/src/tree.py +++ b/src/tree.py @@ -56,7 +56,7 @@ def gen_tree(data_path): def gen_node_id(): # return ''.join(str(uuid.uuid5(uuid.NAMESPACE_URL, 'skill_tree')).split('-')) - return "tc-" + uuid.uuid4().hex + return "toolchains-" + uuid.uuid4().hex def list_dir(p): v = os.listdir(p) -- GitLab