fix ChampionPlayedGame Repo insert
Some checks are pending
ci / docker (push) Waiting to run

This commit is contained in:
Álvaro 2024-06-15 17:40:46 +02:00
parent 8cfc39e381
commit 1c06ffb8a8
5 changed files with 1 additions and 9 deletions

View File

@ -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

View File

@ -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}} ->

View File

@ -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

View File

@ -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">

View File

@ -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])