精确撤回上课记录并改为脚本登记

This commit is contained in:
Codex
2026-06-18 00:58:41 +08:00
parent 5163714853
commit baa54def66
9 changed files with 297 additions and 260 deletions
+3
View File
@@ -88,6 +88,9 @@ def admin_rollback_operation_log(log_id: str, _user: str = Depends(verify_admin_
target_backup_id=str(result.get("target_backup_id") or ""),
backup_id=str(result.get("backup_id") or ""),
restored_files=result.get("restored_files") or [],
rollback_mode=str(result.get("rollback_mode") or ""),
removed_lines=result.get("removed_lines") or [],
restored_hours=result.get("restored_hours") or "",
)
except ValueError as exc:
raise HTTPException(status_code=409, detail=str(exc)) from exc