From 12493112610bfae55802db6fd43dd7b87965fb0a Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 15 Jan 2026 10:47:37 +0100 Subject: [PATCH] add args --- .../commands/teleforma-cleanup-private-documents.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teleforma/management/commands/teleforma-cleanup-private-documents.py b/teleforma/management/commands/teleforma-cleanup-private-documents.py index 8dd8f2ce..314d25c1 100644 --- a/teleforma/management/commands/teleforma-cleanup-private-documents.py +++ b/teleforma/management/commands/teleforma-cleanup-private-documents.py @@ -5,6 +5,10 @@ from datetime import datetime, timedelta class Command(BaseCommand): help = "Delete all private documents older than a number of days" + args = "days" + + def add_arguments(self, parser): + parser.add_argument('args', nargs='*') def handle(self, *args, **options): days = args[0] -- 2.39.5