]> git.parisson.com Git - teleforma.git/commitdiff
fix info
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 15 Jan 2026 09:52:45 +0000 (10:52 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 15 Jan 2026 09:52:45 +0000 (10:52 +0100)
teleforma/management/commands/teleforma-cleanup-private-documents.py

index a0913397831b02b6f38cc8da0f5df88d4979f438..d1950ac9f5d90ee7971ad5a33d1edafa809a4a02 100644 (file)
@@ -14,7 +14,6 @@ class Command(BaseCommand):
         days = int(args[0])
         date_limit = datetime.today() - timedelta(days=days)
         documents = DocumentPrivate.objects.filter(date_added__lte=date_limit)
-        print("num of docs: ", documents.count())
+        print("deleting ", documents.count(), " private documents...")
         for document in documents:
             document.delete()
-            print(document.pk, "deleted")