mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-06 14:31:21 +00:00
16 lines
536 B
Python
16 lines
536 B
Python
from tornado.web import RequestHandler
|
|
|
|
from tfw.config.logs import logging
|
|
log = logging.getLogger(__name__)
|
|
|
|
class SolutionCheckHandler(RequestHandler):
|
|
def initialize(self, solvable_connector):
|
|
self.solvable_connector = solvable_connector
|
|
|
|
async def get(self):
|
|
log.debug('Sending request to solvable')
|
|
self.solvable_connector.send('solution_check', {})
|
|
resp_key, resp_data = await self.solvable_connector.recv()
|
|
log.debug('Received answer from solvable')
|
|
self.write(resp_data)
|