diff options
author | ankitjavalkar | 2015-04-30 12:41:17 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-05-11 16:08:06 +0530 |
commit | 3e29dc7f6df7019562b179872b43cb13c7483738 (patch) | |
tree | f3ce37bc01aa8ffaf15a5ee380cbb371a74f4188 /testapp/exam/code_server.py | |
parent | d8847656ba79e51c96c6e3650374aaf616c375dc (diff) | |
download | online_test-3e29dc7f6df7019562b179872b43cb13c7483738.tar.gz online_test-3e29dc7f6df7019562b179872b43cb13c7483738.tar.bz2 online_test-3e29dc7f6df7019562b179872b43cb13c7483738.zip |
- Seperate testcases, Modify views, models, templates for compatibility
- Change functions names in code_evaluator
Diffstat (limited to 'testapp/exam/code_server.py')
-rwxr-xr-x | testapp/exam/code_server.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testapp/exam/code_server.py b/testapp/exam/code_server.py index c621dcd..3dd5072 100755 --- a/testapp/exam/code_server.py +++ b/testapp/exam/code_server.py @@ -29,7 +29,6 @@ from multiprocessing import Process, Queue import subprocess import re import json -import importlib # Local imports. from settings import SERVER_PORTS, SERVER_TIMEOUT, SERVER_POOL_PORT from language_registry import set_registry @@ -71,7 +70,7 @@ class CodeServer(object): """ code_evaluator = self._create_evaluator_instance(language, json_data, in_dir) - result = code_evaluator.code_evaluator() + result = code_evaluator.evaluate() # Put us back into the server pool queue since we are free now. self.queue.put(self.port) |