Skip to content

Commit

Permalink
codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
yoomlam committed Sep 1, 2020
1 parent c7d07a0 commit c27e30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workflows/bulk_task_assignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def tasks_to_be_assigned

def prioritized_tasks(tasks)
task_count = tasks.count
task_with_initial_priority = tasks.each_with_index.map { |task, i| [task, task_count - i] }
task_with_initial_priority = tasks.each_with_index.map { |task, index| [task, task_count - index] }

prioritized_tasks_with_priority = task_with_initial_priority.sort_by do |task, priority|
priority += task_count**3 if task.appeal.aod?
Expand Down

0 comments on commit c27e30e

Please sign in to comment.