From 768b292f1614de4fc45a0907933c78c6f1b4ea42 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 14 Dec 2023 11:28:12 +0000 Subject: [PATCH] feat: initialize constants in correct order and correct key conditional --- app/services/csv/lettings_log_csv_service.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/services/csv/lettings_log_csv_service.rb b/app/services/csv/lettings_log_csv_service.rb index ea9069f52..882969169 100644 --- a/app/services/csv/lettings_log_csv_service.rb +++ b/app/services/csv/lettings_log_csv_service.rb @@ -245,11 +245,11 @@ module Csv }.freeze LABELS = { - "lettype": LETTYPE_LABELS, - "irproduct": IRPRODUCT_LABELS, - "lar": LAR_LABELS, - "newprop": NEWPROP_LABELS, - "incref": INCREF_LABELS, + "lettype" => LETTYPE_LABELS, + "irproduct" => IRPRODUCT_LABELS, + "lar" => LAR_LABELS, + "newprop" => NEWPROP_LABELS, + "incref" => INCREF_LABELS, }.freeze CONVENTIONAL_YES_NO_ATTRIBUTES = %w[illness_type_1 illness_type_2 illness_type_3 illness_type_4 illness_type_5 illness_type_6 illness_type_7 illness_type_8 illness_type_9 illness_type_10 refused cbl cap chr letting_allocation_none housingneeds_a housingneeds_b housingneeds_c housingneeds_d housingneeds_e housingneeds_f housingneeds_g housingneeds_h has_benefits nocharge].freeze