From 9fc497f8263a6b5d11fa0d5234fb55d9e187855e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 12 Nov 2023 17:12:05 -0700 Subject: [PATCH] Mention that the final number includes dependencies --- activities/management/commands/pruneposts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activities/management/commands/pruneposts.py b/activities/management/commands/pruneposts.py index ecef453..c405c0c 100644 --- a/activities/management/commands/pruneposts.py +++ b/activities/management/commands/pruneposts.py @@ -46,6 +46,6 @@ class Command(BaseCommand): number_deleted, _ = Post.objects.filter( id__in=post_ids_and_uris.values() ).delete() - print(f"Deleted {number_deleted} posts") + print(f"Deleted {number_deleted} posts and dependencies") if number_deleted == 0: sys.exit(1)