bug修复
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -400,8 +400,15 @@ def run_sync(dry_run: bool = False, verbose: bool = False, json_mode: bool = Fal
|
||||
|
||||
pending_files.append({"rel_path": rel_path, "abs_path": abs_path, "slug": slug, "action": "new"})
|
||||
|
||||
# 先不更新 manifest,等实际执行完成后再更新
|
||||
# updated_manifest["files"][rel_path] = {...}
|
||||
# 新文件加入 manifest,标记为待摄入
|
||||
updated_manifest["files"][rel_path] = {
|
||||
"hash": f["hash"],
|
||||
"modified": f.get("modified"),
|
||||
"slug": slug,
|
||||
"source_path": f"wiki/sources/{slug}.md",
|
||||
"ingested": False,
|
||||
"ingested_at": None,
|
||||
}
|
||||
|
||||
# ② 修改 → 标记待处理
|
||||
for f in changes["updated"]:
|
||||
|
||||
Reference in New Issue
Block a user