From 32969ff6891c0cf0af1396c957996370251cd46a Mon Sep 17 00:00:00 2001 From: zhangzc Date: Fri, 10 Dec 2021 17:04:23 +0800 Subject: [PATCH] modify dir name : data_backup as data_source --- it_knowledge_helper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/it_knowledge_helper.py b/it_knowledge_helper.py index 318eb1af6..b305eaa10 100644 --- a/it_knowledge_helper.py +++ b/it_knowledge_helper.py @@ -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() -- GitLab