This commit is contained in:
2026-08-16 19:05:05 -05:00
parent b1692ff3e3
commit 66855dbf2c
+7 -2
View File
@@ -8,8 +8,13 @@ defmodule Casebot.CSV do
|> File.read!()
#|> String.trim()
|> NimbleCSV.RFC4180.parse_string(skip_headers: false)
|> Enum.map(fn row -> Enum.map(row, &:binary.copy/1) |> List.to_tuple() end)
|> Enum.map(String.trim)
|> Enum.map(fn row ->
row
|> Enum.map(&String.trim/1)
|> Enum.map(&:binary.copy/1)
|> List.to_tuple()
end)
end
def init_master_data(filepath) do