From: Guillaume Pellerin Date: Thu, 15 Jan 2026 09:47:37 +0000 (+0100) Subject: add args X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=12493112610bfae55802db6fd43dd7b87965fb0a;p=teleforma.git add args --- 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]