Skip to content

Commit

Permalink
Fix line too long lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirade authored and auvipy committed Jan 25, 2022
1 parent fa73034 commit 6172ba4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions django_celery_beat/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6172ba4

Please sign in to comment.