mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 00:21:32 +00:00
Fix handlers' responses
This commit is contained in:
parent
f3d53c2b5b
commit
1c3e946e29
@ -8,4 +8,4 @@ class SolutionCheckHandler(RequestHandler):
|
|||||||
def get(self):
|
def get(self):
|
||||||
self.solvable_connector.send('solution_check', {})
|
self.solvable_connector.send('solution_check', {})
|
||||||
resp_key, resp_data = self.solvable_connector.recv()
|
resp_key, resp_data = self.solvable_connector.recv()
|
||||||
return resp_data
|
self.write(resp_data)
|
||||||
|
@ -8,4 +8,4 @@ class TestHandler(RequestHandler):
|
|||||||
def get(self):
|
def get(self):
|
||||||
self.solvable_connector.send('test', {})
|
self.solvable_connector.send('test', {})
|
||||||
resp_key, resp_data = self.solvable_connector.recv()
|
resp_key, resp_data = self.solvable_connector.recv()
|
||||||
return resp_data
|
self.write(resp_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user