diff --git a/backend/main.py b/backend/main.py index 035cf04..d3911a5 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1933,6 +1933,7 @@ async def restore_backup( async def reset_section( section: str, current_user: User = Depends(get_current_admin), + db: Session = Depends(get_db), ): """Reset (truncate) a specific data section. Creates auto-backup first.""" valid = {"attendance": AttendanceRecord, "holidays": Holiday, "leaves": LeaveRecord}