This commit is contained in:
Nicolas Bally 2020-07-30 12:20:54 +02:00
parent 4419cbb607
commit 1e6f2edf98

View File

@ -68,7 +68,7 @@ class ImportCsv < ApplicationRecord
end end
csv_text = File.read(self.file.path, :encoding => 'UTF-8') csv_text = File.read(self.file.path, :encoding => 'UTF-8')
@csv = CSV.parse(csv_text, :headers => true, :col_sep => ";") @csv = CSV.parse(csv_text, :headers => true, :col_sep => ",")
r = [] r = []
@csv.each do |row| @csv.each do |row|
line = {} line = {}