优化一些程序

This commit is contained in:
2026-04-24 15:02:36 +08:00
parent 7f61a585be
commit ecf8f8b084
5 changed files with 998 additions and 11 deletions

View File

@@ -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 文件)