lib/linsc/merger.rb in linsc-0.0.17 vs lib/linsc/merger.rb in linsc-0.0.18
- old
+ new
@@ -31,10 +31,10 @@
recruiter_name = pn.basename.to_s.match(/LIN[^.]+/)[0]
puts "merging #{recruiter_name}"
clean_file = File.read(lin_file, encoding: 'windows-1252').strip
CSV.parse(clean_file, headers: true, encoding: 'windows-1252') do |row|
row["Recruiter"] = recruiter_name
- email = row['E-mail Address'].downcase if row['E-mail Address']
+ email = row['EmailAddress'].downcase if row['EmailAddress']
if emails.has_key?(email)
emails[email] << row
else
emails[email] = [row]
end