From 1c3e946e29a00062d01b33647ca18548dc7ff415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Fri, 9 Feb 2018 14:04:47 +0100 Subject: [PATCH] Fix handlers' responses --- src/controller/handlers/solution_check_handler.py | 2 +- src/controller/handlers/test_handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/handlers/solution_check_handler.py b/src/controller/handlers/solution_check_handler.py index 85bfe7c..b45d7fd 100644 --- a/src/controller/handlers/solution_check_handler.py +++ b/src/controller/handlers/solution_check_handler.py @@ -8,4 +8,4 @@ class SolutionCheckHandler(RequestHandler): def get(self): self.solvable_connector.send('solution_check', {}) resp_key, resp_data = self.solvable_connector.recv() - return resp_data + self.write(resp_data) diff --git a/src/controller/handlers/test_handler.py b/src/controller/handlers/test_handler.py index 0514e08..bc4d690 100644 --- a/src/controller/handlers/test_handler.py +++ b/src/controller/handlers/test_handler.py @@ -8,4 +8,4 @@ class TestHandler(RequestHandler): def get(self): self.solvable_connector.send('test', {}) resp_key, resp_data = self.solvable_connector.recv() - return resp_data + self.write(resp_data)