提交 04c80cf2 编写于 作者: M Mars Liu

fixed node id

上级 dc1a46a4
{ {
"keywords": [], "keywords": [],
"node_id": "c-1cf412c0785c4269a2a4cc7634aa101b", "node_id": "tc-ca61bc935c5d40239707de30f68a4444",
"title": "GIT入门" "title": "GIT入门"
} }
\ No newline at end of file
{ {
"keywords": [], "keywords": [],
"node_id": "c-5995c3ccf1554d1ca4e48da52cf6aed9", "node_id": "tc-e314213fdbfc445285991968b8b886eb",
"title": "toolchains初阶" "title": "toolchains初阶"
} }
\ No newline at end of file
{ {
"keywords": [], "keywords": [],
"node_id": "c-671b93fb441b44bd86020a6c5ecb689b", "node_id": "tc-e86748361c424ab28f0ed3ea4a56f652",
"title": "toolchains中阶" "title": "toolchains中阶"
} }
\ No newline at end of file
{ {
"keywords": [], "keywords": [],
"node_id": "c-60527be7abb340d39a1d4a4e780b402c", "node_id": "tc-b2bc70f02a614ca7adac587f37f98acb",
"title": "toolchains高阶" "title": "toolchains高阶"
} }
\ No newline at end of file
{ {
"tree_name": "Toolchains", "tree_name": "Toolchains",
"keywords": [], "keywords": [],
"node_id": "c-9ae45d2c41cd4958a449b8f50a394fcc", "node_id": "tc-6b7817c003af4f2fb8f53367b6ae0bb5",
"title": "C" "title": "C"
} }
\ No newline at end of file
{ {
"Toolchains": { "Toolchains": {
"node_id": "c-9ae45d2c41cd4958a449b8f50a394fcc", "node_id": "tc-6b7817c003af4f2fb8f53367b6ae0bb5",
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"toolchains初阶": { "toolchains初阶": {
"node_id": "c-5995c3ccf1554d1ca4e48da52cf6aed9", "node_id": "tc-e314213fdbfc445285991968b8b886eb",
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"GIT入门": { "GIT入门": {
"node_id": "c-1cf412c0785c4269a2a4cc7634aa101b", "node_id": "tc-ca61bc935c5d40239707de30f68a4444",
"keywords": [], "keywords": [],
"children": [] "children": []
} }
...@@ -20,14 +20,14 @@ ...@@ -20,14 +20,14 @@
}, },
{ {
"toolchains中阶": { "toolchains中阶": {
"node_id": "c-671b93fb441b44bd86020a6c5ecb689b", "node_id": "tc-e86748361c424ab28f0ed3ea4a56f652",
"keywords": [], "keywords": [],
"children": [] "children": []
} }
}, },
{ {
"toolchains高阶": { "toolchains高阶": {
"node_id": "c-60527be7abb340d39a1d4a4e780b402c", "node_id": "tc-b2bc70f02a614ca7adac587f37f98acb",
"keywords": [], "keywords": [],
"children": [] "children": []
} }
......
...@@ -56,7 +56,7 @@ def gen_tree(data_path): ...@@ -56,7 +56,7 @@ def gen_tree(data_path):
def gen_node_id(): def gen_node_id():
# return ''.join(str(uuid.uuid5(uuid.NAMESPACE_URL, 'skill_tree')).split('-')) # 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): def list_dir(p):
v = os.listdir(p) v = os.listdir(p)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册