From ed72b73bcfe097f8ba00b9100de9b66551d0ac67 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Mon, 6 Nov 2023 12:29:15 +0000 Subject: [PATCH] feat: revert toheaders: false --- lib/tasks/correct_illness_from_csv.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/correct_illness_from_csv.rake b/lib/tasks/correct_illness_from_csv.rake index e171d9225..92bbb8921 100644 --- a/lib/tasks/correct_illness_from_csv.rake +++ b/lib/tasks/correct_illness_from_csv.rake @@ -22,10 +22,10 @@ namespace :correct_illness do s3_service = Storage::S3Service.new(PlatformHelper.is_paas? ? Configuration::PaasConfigurationService.new : Configuration::EnvConfigurationService.new, ENV["IMPORT_PAAS_INSTANCE"]) file_io = s3_service.get_file_io(file_name) file_io.set_encoding_by_bom - illness_csv = CSV.parse(file_io, headers: true) + illness_csv = CSV.parse(file_io, headers: false) illness_csv.each_with_index do |row, index| - next if index < 2 + next if index < 3 lettings_log_id = row[1]