From 2540a014e07505ace0290c68570c49a6fcd8d616 Mon Sep 17 00:00:00 2001 From: Karl Engelhardt Date: Mon, 19 Dec 2022 16:19:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Add=20offse?= =?UTF-8?q?t=5Fpath=20option=20to=20parse=5Fmail=5Flog=20mgmt=20cmd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- froide/helper/management/commands/parse_mail_log.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/froide/helper/management/commands/parse_mail_log.py b/froide/helper/management/commands/parse_mail_log.py index d0818e717..6a70040a8 100644 --- a/froide/helper/management/commands/parse_mail_log.py +++ b/froide/helper/management/commands/parse_mail_log.py @@ -9,8 +9,9 @@ class Command(BaseCommand): help = "Processes mail logs for deliveries" def add_arguments(self, parser): - parser.add_argument("log_path", default=None) + parser.add_argument("log_path") + parser.add_argument("offset_path") def handle(self, *args, **options): translation.activate(settings.LANGUAGE_CODE) - check_delivery_from_log(options["log_path"]) + check_delivery_from_log(str(options["log_path"]), str(options["offset_path"]))