summaryrefslogtreecommitdiff
path: root/yaksh/code_server.py
diff options
context:
space:
mode:
authorankitjavalkar2016-12-15 16:34:18 +0530
committerankitjavalkar2016-12-20 12:46:02 +0530
commit80a4feef3c209e044e8cbe31e44c81d69136e100 (patch)
treedcf262436bbe7ada8dc43638ac1769238c30bac9 /yaksh/code_server.py
parentb59e11188609ef10150f76d75f75882f8ae20269 (diff)
downloadonline_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.py5
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)