Update teacher profiles and record summaries
This commit is contained in:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user