From 2d64d3f0b660a1d07425b98638a6479938cb063b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IT=E7=8B=97?= Date: Tue, 21 Jul 2026 13:08:00 +0800 Subject: [PATCH] Add accident to reset sections --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index d3911a5..8800603 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1936,7 +1936,7 @@ async def reset_section( db: Session = Depends(get_db), ): """Reset (truncate) a specific data section. Creates auto-backup first.""" - valid = {"attendance": AttendanceRecord, "holidays": Holiday, "leaves": LeaveRecord} + valid = {"attendance": AttendanceRecord, "holidays": Holiday, "leaves": LeaveRecord, "accident": Accident} if section not in valid: raise HTTPException(status_code=400, detail=f"Unknown section: {section}") # Auto-backup before reset