优化一些程序
This commit is contained in:
@@ -10,7 +10,7 @@ from pathlib import Path
|
||||
|
||||
|
||||
# 配置路径
|
||||
JSON_FILE_PATH = 'server/jsons/2.json'
|
||||
JSON_FILE_PATH = 'server/jsons/compressed_group_time_issues.json'
|
||||
CC_DIR = Path('cc')
|
||||
BAK_DIR = Path('bak')
|
||||
|
||||
@@ -101,10 +101,12 @@ def process_record(record: dict, cc_dir: Path, bak_dir: Path) -> dict:
|
||||
|
||||
if not group2_folder:
|
||||
result['error'] = f'学科网 folder not found in {source_folder_name}'
|
||||
print(f"Warning: 学科网 folder not found in {source_folder_name}, skipping this record.")
|
||||
return result
|
||||
|
||||
if not group1_folder:
|
||||
result['error'] = f'二一教育 folder not found in {source_folder_name}'
|
||||
print(f"Warning: 二一教育 folder not found in {source_folder_name}, skipping this record.")
|
||||
return result
|
||||
|
||||
# 获取 group1 和 group2 的第一个文件(zip 文件)
|
||||
|
||||
Reference in New Issue
Block a user