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 d6aaccbb632c8d997dd568a36cd437bf005e5b81..792ef9c79401097e928476037bdafbb196cecceb 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 22e35068e43ff193c879b33e24e0099a9e839983..d1b3f42dd5662659b40b5af4a4b9c7d82d5ca4db 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 5c2bc98918b04a1ec0fb07711b6790356083a468..c7ad3c733c0bb9b257283c57b8dc13f49c97a486 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 f17c3d7499082748a5b7f8c7c780e1293dcaa9d1..b02b48709e5e4b944c21c9505e8180d10547144b 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 f201a93fa860a949a28bf8d1c91cdef048e62ae2..4bc9df13470ab72cc55458f9d6e6c1b7aa6ea567 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 9911e4b8b964e8d5f637f0916c36585b66ed1b19..fc8cb2743618ccb9f6152ba6a53a934fc4eea1f8 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 ba3287e6e837316c3ec263822d6b503df4bff6fd..07fb6574f09ecf571191948d91a9bdefb3da234d 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)