This commit is contained in:
parent
8cfc39e381
commit
1c06ffb8a8
@ -7,7 +7,6 @@ defmodule LolAnalytics.Dimensions.Item.ItemMetadata do
|
||||
data = get_items()
|
||||
|
||||
data
|
||||
# |> IO.inspect()
|
||||
|> Enum.each(&save_metadata/1)
|
||||
end
|
||||
|
||||
@ -21,7 +20,6 @@ defmodule LolAnalytics.Dimensions.Item.ItemMetadata do
|
||||
end
|
||||
|
||||
defp save_metadata({item_id, metadata}) do
|
||||
# IO.inspect(item)
|
||||
ItemRepo.update(item_id, %{metadata: metadata})
|
||||
end
|
||||
end
|
||||
|
@ -11,7 +11,6 @@ defmodule LolAnalytics.Facts.ChampionPickedItem.FactProcessor do
|
||||
def process_game_at_url(url) do
|
||||
case HTTPoison.get(url) do
|
||||
{:ok, %HTTPoison.Response{status_code: 200, body: body}} ->
|
||||
IO.inspect(url)
|
||||
process_game_data(body)
|
||||
|
||||
{:error, %HTTPoison.Error{reason: reason}} ->
|
||||
|
@ -25,7 +25,7 @@ defmodule LolAnalytics.Facts.ChampionPlayedGame.Repo do
|
||||
|
||||
changeset = Schema.changeset(prev || %Schema{}, attrs)
|
||||
|
||||
Repo.update(changeset)
|
||||
Repo.insert_or_update(changeset)
|
||||
end
|
||||
|
||||
def list_played_matches() do
|
||||
|
@ -10,8 +10,6 @@ defmodule LolAnalyticsWeb.ChampionComponents.ChampionCard do
|
||||
attr :props, Props, default: %Props{}
|
||||
|
||||
def champion_card(assigns) do
|
||||
# IO.inspect(assigns)
|
||||
|
||||
~H"""
|
||||
<.link patch={"/champions/#{@props.id}?team-position=#{@props.team_position}"}>
|
||||
<div class="flex flex-col rounded-xl bg-clip-border overflow-hidden bg-gray-200">
|
||||
|
@ -302,9 +302,6 @@ defmodule LoLAnalyticsWeb.CoreComponents do
|
||||
end
|
||||
|
||||
def input(%{type: "checkbox"} = assigns) do
|
||||
IO.puts(">>>>")
|
||||
IO.inspect(assigns)
|
||||
|
||||
assigns =
|
||||
assign_new(assigns, :checked, fn ->
|
||||
Phoenix.HTML.Form.normalize_value("checkbox", assigns[:value])
|
||||
|
Loading…
x
Reference in New Issue
Block a user