Skip to content

Commit

Permalink
decode base64
Browse files Browse the repository at this point in the history
  • Loading branch information
sushant12 committed Oct 6, 2024
1 parent 89b66bb commit 5ad4e0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/handin/assignment_submission_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ defmodule Handin.AssignmentSubmissionServer do

case Jason.decode(response["stdout"]) do
{:ok, decoded_response} ->
decoded_response = Base.decode64!(decoded_response)
save_test_results(state, assignment_test, decoded_response)
log_test_result(state, assignment_test, decoded_response)

Expand Down
1 change: 1 addition & 0 deletions lib/handin/build_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ defmodule Handin.BuildServer do

case Jason.decode(response["stdout"]) do
{:ok, decoded_response} ->
decoded_response = Base.decode64!(decoded_response)
save_test_results(state, assignment_test, decoded_response)
log_test_result(state, assignment_test, decoded_response)

Expand Down

0 comments on commit 5ad4e0e

Please sign in to comment.