summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-10-13 03:32:16 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-10-13 03:32:16 +0200
commitcc12d3b303e5d1a2e88073d0d6f7ff2f4210273f (patch)
tree78e33b44ba631bd832028f8706f6d478b85e3935
parent64885ef1675f32cc3ce9d59aa0f6c31064338eec (diff)
add_task: fix returned hints in online task_check
-rwxr-xr-xkpov_judge/add_task.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kpov_judge/add_task.py b/kpov_judge/add_task.py
index ea11c9c..aab5e46 100755
--- a/kpov_judge/add_task.py
+++ b/kpov_judge/add_task.py
@@ -21,7 +21,7 @@ def task_check(results, params):
response_dict = json.loads(response.read().decode())
hints = response_dict.get('hints', [])
hints = ['status: ' + response_dict.get('status', '')] + hints
- return response_dict.get('result', 'No result'), "\n".join(hints)
+ return response_dict.get('result', 'No result'), hints
uploading_task_check_source = inspect.getsource(task_check)