Skip to content

Commit

Permalink
remove more debug code ... #145
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Sep 7, 2023
1 parent 630255e commit 6362525
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/app/item.ex
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ defmodule App.Item do
all_list = App.List.get_all_list_for_person(person_id)
seq = App.List.get_list_seq(all_list)


sql = """
SELECT i.id, i.cid, i.text, i.status, i.person_id, i.updated_at,
t.start, t.stop, t.id as timer_id
Expand Down
1 change: 1 addition & 0 deletions lib/app/list.ex
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ defmodule App.List do
def get_all_list_for_person(person_id) do
# IO.inspect("get_all_list_for_person(person_id: #{person_id})")
all_list = get_list_by_name!("all", person_id)

if all_list == nil do
# doesn't exist, create it:
{:ok, %{model: list}} =
Expand Down
3 changes: 0 additions & 3 deletions lib/app_web/live/app_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,12 @@ defmodule AppWeb.AppLive do

@impl true
def handle_event("highlight", %{"id" => id}, socket) do
# IO.puts("highlight: #{id}")
AppWeb.Endpoint.broadcast(@topic, "move_items", {:drag_item, id})
{:noreply, socket}
end

@impl true
def handle_event("removeHighlight", %{"id" => id}, socket) do
# IO.puts("removeHighlight: #{id}")
AppWeb.Endpoint.broadcast(@topic, "move_items", {:drop_item, id})
{:noreply, socket}
end
Expand Down Expand Up @@ -318,7 +316,6 @@ defmodule AppWeb.AppLive do
},
socket
) do

{:noreply,
push_event(socket, "dragover-item", %{
current_item_id: current_item_id,
Expand Down
2 changes: 1 addition & 1 deletion test/app/stats_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ defmodule App.StatsTest do
assert first_element.person_id == 2
end

test "Stats.validate_sort_column/1 returns false for invalid sort _column" do
test "Stats.validate_sort_column/1 returns false for invalid sort_column" do
refute Stats.validate_sort_column(:invalid)
end

Expand Down

0 comments on commit 6362525

Please sign in to comment.