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