From 10d4beaa644b7cec83854d35dfffbba31221c1dd Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 28 Jun 2021 18:53:03 +0200 Subject: [PATCH] fix args --- .../commands/teleforma-reset-all-passwords-with-mail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py index e5e7d3bf..1438b124 100644 --- a/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py +++ b/teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py @@ -42,9 +42,9 @@ class Command(BaseCommand): message = render_to_string(self.message_template, ctx_dict) send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [user.email], fail_silently=False) - def handle(self, *args, **options): - log_file = options['log_file'] - period_name = options['period_name'] + def handle(self, *args, **nargs): + log_file = args[-1] + period_name = args[-2] logger = Logger(log_file) logger.logger.info('########### Processing #############') -- 2.39.5