Skip to content

Commit

Permalink
[BugFix] Encode stderr and stdout with utf-8 in update submission API
Browse files Browse the repository at this point in the history
  • Loading branch information
savish28 authored Aug 21, 2021
1 parent 14977eb commit 4c36f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/jobs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,8 @@ def update_submission(request, challenge_pk):
challenge_phase_pk = request.data.get("challenge_phase")
submission_pk = request.data.get("submission")
submission_status = request.data.get("submission_status", "").lower()
stdout_content = request.data.get("stdout", "")
stderr_content = request.data.get("stderr", "")
stdout_content = request.data.get("stdout", "").encode("utf-8")
stderr_content = request.data.get("stderr", "").encode("utf-8")
submission_result = request.data.get("result", "")
metadata = request.data.get("metadata", "")
submission = get_submission_model(submission_pk)
Expand Down

0 comments on commit 4c36f57

Please sign in to comment.