remove debug line
This commit is contained in:
parent
c8c3841794
commit
9995d7da49
|
@ -16,7 +16,6 @@ defmodule Parser do
|
||||||
def parse do
|
def parse do
|
||||||
File.stream!("sunmoon_clothes.csv")
|
File.stream!("sunmoon_clothes.csv")
|
||||||
|> CSV.decode!(headers: :true)
|
|> CSV.decode!(headers: :true)
|
||||||
# |> Enum.each(fn x -> IO.inspect(x) end)
|
|
||||||
|> Enum.map(fn x -> %Clothes{game: x["game"], location: x["location"], name: x["name"], color: x["color"]} end)
|
|> Enum.map(fn x -> %Clothes{game: x["game"], location: x["location"], name: x["name"], color: x["color"]} end)
|
||||||
|> Enum.each(fn x -> Repo.insert!(x) end)
|
|> Enum.each(fn x -> Repo.insert!(x) end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue