diff options
author | ankitjavalkar | 2016-12-15 16:34:18 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-12-20 12:46:02 +0530 |
commit | 80a4feef3c209e044e8cbe31e44c81d69136e100 (patch) | |
tree | dcf262436bbe7ada8dc43638ac1769238c30bac9 /yaksh/code_server.py | |
parent | b59e11188609ef10150f76d75f75882f8ae20269 (diff) | |
download | online_test-80a4feef3c209e044e8cbe31e44c81d69136e100.tar.gz online_test-80a4feef3c209e044e8cbe31e44c81d69136e100.tar.bz2 online_test-80a4feef3c209e044e8cbe31e44c81d69136e100.zip |
Add further changes to code evaluator
Diffstat (limited to 'yaksh/code_server.py')
-rw-r--r-- | yaksh/code_server.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yaksh/code_server.py b/yaksh/code_server.py index abe7cd8..3c1a3e3 100644 --- a/yaksh/code_server.py +++ b/yaksh/code_server.py @@ -54,6 +54,7 @@ from tornado.web import Application, RequestHandler # Local imports from .settings import SERVER_PORTS, SERVER_POOL_PORT from .language_registry import create_evaluator_instance +from .code_evaluator import CodeEvaluator MY_DIR = abspath(dirname(__file__)) @@ -89,9 +90,9 @@ class CodeServer(object): # json_data, # in_dir # ) - data = unpack_json_to_python_obj(json_data) + data = self.unpack_json_to_python_obj(json_data) code_eval_instance = CodeEvaluator(in_dir) - result = code_eval_instance.evaluate(**data) #language, test_case_type, + result = code_eval_instance.evaluate(data) #language, test_case_type, # Put us back into the server pool queue since we are free now. self.queue.put(self.port) |