From c77af3a4a788b5a005ee54f36d642d297a0ad364 Mon Sep 17 00:00:00 2001 From: JaeyoungHeo Date: Mon, 24 Jan 2022 20:02:09 +0900 Subject: [PATCH] Fix line too long lint error --- django_celery_beat/admin.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/django_celery_beat/admin.py b/django_celery_beat/admin.py index 794a9fd7..aaeb76f5 100644 --- a/django_celery_beat/admin.py +++ b/django_celery_beat/admin.py @@ -220,10 +220,14 @@ def run_tasks(self, request, queryset): ) return - task_ids = [task.apply_async(args=args, kwargs=kwargs, queue=queue, periodic_task_name=periodic_task_name) - if queue and len(queue) - else task.apply_async(args=args, kwargs=kwargs, periodic_task_name=periodic_task_name) - for task, args, kwargs, queue, periodic_task_name in tasks] + task_ids = [ + task.apply_async(args=args, kwargs=kwargs, queue=queue, + periodic_task_name=periodic_task_name) + if queue and len(queue) + else task.apply_async(args=args, kwargs=kwargs, + periodic_task_name=periodic_task_name) + for task, args, kwargs, queue, periodic_task_name in tasks + ] tasks_run = len(task_ids) self.message_user( request,