From 04c80cf26fb7cccb6d2b390b8873bafa4ba74b29 Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Tue, 2 Nov 2021 23:24:52 +0800 Subject: [PATCH] fixed node id --- .../1.GIT\345\205\245\351\227\250/config.json" | 2 +- .../1.toolchains\345\210\235\351\230\266/config.json" | 2 +- .../2.toolchains\344\270\255\351\230\266/config.json" | 2 +- .../3.toolchains\351\253\230\351\230\266/config.json" | 2 +- data/config.json | 2 +- data/tree.json | 10 +++++----- src/tree.py | 2 +- 7 files changed, 11 insertions(+), 11 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 d6aaccb..792ef9c 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": "c-1cf412c0785c4269a2a4cc7634aa101b", + "node_id": "tc-ca61bc935c5d40239707de30f68a4444", "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 22e3506..d1b3f42 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": "c-5995c3ccf1554d1ca4e48da52cf6aed9", + "node_id": "tc-e314213fdbfc445285991968b8b886eb", "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 5c2bc98..c7ad3c7 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": "c-671b93fb441b44bd86020a6c5ecb689b", + "node_id": "tc-e86748361c424ab28f0ed3ea4a56f652", "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 f17c3d7..b02b487 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": "c-60527be7abb340d39a1d4a4e780b402c", + "node_id": "tc-b2bc70f02a614ca7adac587f37f98acb", "title": "toolchains高阶" } \ No newline at end of file diff --git a/data/config.json b/data/config.json index f201a93..4bc9df1 100644 --- a/data/config.json +++ b/data/config.json @@ -1,6 +1,6 @@ { "tree_name": "Toolchains", "keywords": [], - "node_id": "c-9ae45d2c41cd4958a449b8f50a394fcc", + "node_id": "tc-6b7817c003af4f2fb8f53367b6ae0bb5", "title": "C" } \ No newline at end of file diff --git a/data/tree.json b/data/tree.json index 9911e4b..fc8cb27 100644 --- a/data/tree.json +++ b/data/tree.json @@ -1,16 +1,16 @@ { "Toolchains": { - "node_id": "c-9ae45d2c41cd4958a449b8f50a394fcc", + "node_id": "tc-6b7817c003af4f2fb8f53367b6ae0bb5", "keywords": [], "children": [ { "toolchains初阶": { - "node_id": "c-5995c3ccf1554d1ca4e48da52cf6aed9", + "node_id": "tc-e314213fdbfc445285991968b8b886eb", "keywords": [], "children": [ { "GIT入门": { - "node_id": "c-1cf412c0785c4269a2a4cc7634aa101b", + "node_id": "tc-ca61bc935c5d40239707de30f68a4444", "keywords": [], "children": [] } @@ -20,14 +20,14 @@ }, { "toolchains中阶": { - "node_id": "c-671b93fb441b44bd86020a6c5ecb689b", + "node_id": "tc-e86748361c424ab28f0ed3ea4a56f652", "keywords": [], "children": [] } }, { "toolchains高阶": { - "node_id": "c-60527be7abb340d39a1d4a4e780b402c", + "node_id": "tc-b2bc70f02a614ca7adac587f37f98acb", "keywords": [], "children": [] } diff --git a/src/tree.py b/src/tree.py index ba3287e..07fb657 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 "c-" + uuid.uuid4().hex + return "tc-" + uuid.uuid4().hex def list_dir(p): v = os.listdir(p) -- GitLab