Update teacher profiles and record summaries

This commit is contained in:
Codex
2026-06-16 01:09:51 +08:00
parent a7fbe91266
commit 2785f3eb41
18 changed files with 1088 additions and 40 deletions
+2 -2
View File
@@ -100,13 +100,13 @@ def create_data_backup(
target_path = backup_dir / source_path.name
atomic_write_text(target_path, content)
apply_source_permissions(target_path, source_path)
source_stat = source_path.stat()
source_stat = source_path.stat() if source_path.exists() else None
metadata["files"].append(
{
"name": source_path.name,
"source_path": str(source_path),
"size": len(content.encode("utf-8")),
"mtime": source_stat.st_mtime,
"mtime": source_stat.st_mtime if source_stat is not None else None,
}
)
metadata_path = backup_dir / "metadata.json"