Skip to content

Commit

Permalink
update deps; remove inspects
Browse files Browse the repository at this point in the history
  • Loading branch information
NatTuck committed Jan 6, 2025
1 parent 8ad0ec6 commit 18eafdb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
6 changes: 1 addition & 5 deletions lib/inkfish_web/controllers/sub_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,8 @@ defmodule InkfishWeb.SubController do
|> Map.put("reg_id", reg.id)
|> Map.put("team_id", team.id)

IO.inspect({:sub_params, sub_params})

case Subs.create_sub(sub_params) do
{:ok, sub} ->
IO.inspect({:sub, sub})

try do
GradingTasks.assign_grading_tasks(sub.assignment_id)
rescue
Expand All @@ -74,7 +70,7 @@ defmodule InkfishWeb.SubController do
|> redirect(to: Routes.sub_path(conn, :show, sub))

{:error, %Ecto.Changeset{} = changeset} ->
IO.inspect({:error, changeset})
# IO.inspect({:error, changeset})
nonce = Base.encode16(:crypto.strong_rand_bytes(32))
token = Phoenix.Token.sign(conn, "upload", %{kind: "sub", nonce: nonce})

Expand Down
Loading

0 comments on commit 18eafdb

Please sign in to comment.