diff --git a/hc/api/management/commands/prunenotifications.py b/hc/api/management/commands/prunenotifications.py index 82cc86dc..dcdcf40b 100644 --- a/hc/api/management/commands/prunenotifications.py +++ b/hc/api/management/commands/prunenotifications.py @@ -10,7 +10,7 @@ class Command(BaseCommand): def handle(self, *args, **options): total = 0 - q = Check.objects.filter(n_pings__gt=0) + q = Check.objects.filter(n_pings__gt=100) q = q.annotate(min_ping_date=Min("ping__created")) for check in q: qq = Notification.objects.filter(owner_id=check.id,