From cc12d3b303e5d1a2e88073d0d6f7ff2f4210273f Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sat, 13 Oct 2018 03:32:16 +0200 Subject: add_task: fix returned hints in online task_check --- kpov_judge/add_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1