Browse Source

CLDC-4436: use liberal parsing for sales log with purchid in quotes (105099) (#3323)

pull/3316/merge
Nat Dean-Lewis 2 days ago committed by GitHub
parent
commit
51a684e5ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      lib/tasks/log_la_fix.rake

4
lib/tasks/log_la_fix.rake

@ -79,10 +79,10 @@ namespace :log_la_fix do
File.readlines(file).each do |line|
line = line.strip
if line.start_with?("#lettings#")
row = CSV.parse_line(line.delete_prefix("#lettings#"))
row = CSV.parse_line(line.delete_prefix("#lettings#"), liberal_parsing: true)
lettings_csv << row
elsif line.start_with?("#sales#")
row = CSV.parse_line(line.delete_prefix("#sales#"))
row = CSV.parse_line(line.delete_prefix("#sales#"), liberal_parsing: true)
sales_csv << row
end
end

Loading…
Cancel
Save