From: Guillaume Pellerin Date: Mon, 28 Jun 2021 16:53:03 +0000 (+0200) Subject: fix args X-Git-Tag: 2.1~23 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=10d4beaa644b7cec83854d35dfffbba31221c1dd;p=teleforma.git fix args --- 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 #############')