import os
import django

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development")
django.setup()

from apps.hr.models import Attendance
count = Attendance.all_objects.filter(deleted_at__isnull=False).count()
print("Soft deleted records:", count)
Attendance.all_objects.all().hard_delete()
print("All attendance records completely nuked to unblock testing!")
