summaryrefslogtreecommitdiff
path: root/yaksh/xmlrpc_clients.py
diff options
context:
space:
mode:
authorankitjavalkar2016-11-02 16:02:03 +0530
committerankitjavalkar2016-11-10 12:43:14 +0530
commit053e27000540396b84c26d5a5f593d4389e0787a (patch)
tree0d48b337b2bc1e615b436784d78edf2daba08791 /yaksh/xmlrpc_clients.py
parent7ae8584a4f4d095e005d6239102c0f26611ac006 (diff)
downloadonline_test-053e27000540396b84c26d5a5f593d4389e0787a.tar.gz
online_test-053e27000540396b84c26d5a5f593d4389e0787a.tar.bz2
online_test-053e27000540396b84c26d5a5f593d4389e0787a.zip
dd basic partial marking feature per test case
Diffstat (limited to 'yaksh/xmlrpc_clients.py')
-rw-r--r--yaksh/xmlrpc_clients.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/xmlrpc_clients.py b/yaksh/xmlrpc_clients.py
index 4da70dd..ff0a2a7 100644
--- a/yaksh/xmlrpc_clients.py
+++ b/yaksh/xmlrpc_clients.py
@@ -62,7 +62,9 @@ class CodeServerProxy(object):
server = self._get_server()
result = server.check_code(language, test_case_type, json_data, user_dir)
except ConnectionError:
- result = json.dumps({'success': False, 'error': 'Unable to connect to any code servers!'})
+ result = json.dumps({'success': False,
+ 'marks': 0.0,
+ 'error': 'Unable to connect to any code servers!'})
return result
def _get_server(self):