]> git.parisson.com Git - teleforma.git/commitdiff
fix args
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 28 Jun 2021 16:53:03 +0000 (18:53 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 28 Jun 2021 16:53:03 +0000 (18:53 +0200)
teleforma/management/commands/teleforma-reset-all-passwords-with-mail.py

index e5e7d3bf40ef10c6260c1a590757b1261a4bb8b5..1438b12489054d9d70fea5de3b2d44eabf55151e 100644 (file)
@@ -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 #############')