提交 32969ff6 编写于 作者: 每日一练社区's avatar 每日一练社区

modify dir name : data_backup as data_source

上级 d6789577
......@@ -45,7 +45,7 @@ def dump_json(path, data):
df.write(json.dumps(data, indent=2, ensure_ascii=False))
def extract_it_knowledge():
data_dir = 'data_backup/it_knowledge'
data_dir = 'data_source/it_knowledge'
save_dir = 'data/1.dailycode初阶/4.it_knowledge'
shutil.rmtree(save_dir)
......@@ -151,7 +151,7 @@ def extract_it_knowledge():
def get_source_data_mapping():
file_mapping = {}
sourcde_dir = 'data_backup/it_knowledge'
sourcde_dir = 'data_source/it_knowledge'
files = get_files_path(sourcde_dir, '.md')
count = 0
title_list = []
......@@ -183,9 +183,9 @@ def get_source_data_mapping():
def update_it_konwledge():
data_dir = 'data_backup/it_knowledge'
data_dir = 'data_source/it_knowledge'
it_mapping_path = 'data_backup/it_mapping.json'
it_mapping_path = 'data_source/it_mapping.json'
it_mapping = load_json(it_mapping_path)
exist_files = it_mapping.keys()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册