diff options
author | ankitjavalkar | 2016-11-16 11:25:30 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-11-16 11:25:30 +0530 |
commit | b32d7e91fe608c4cbd09b50520d4a3cab75d2e53 (patch) | |
tree | ab726e234a2c72aa3a926a2ed70ae54e9b8919ee /yaksh/xmlrpc_clients.py | |
parent | 232c4480d47b75fcdb523e5ebb601959c56e40dc (diff) | |
download | online_test-b32d7e91fe608c4cbd09b50520d4a3cab75d2e53.tar.gz online_test-b32d7e91fe608c4cbd09b50520d4a3cab75d2e53.tar.bz2 online_test-b32d7e91fe608c4cbd09b50520d4a3cab75d2e53.zip |
Change test_case weightage field name to weight
Diffstat (limited to 'yaksh/xmlrpc_clients.py')
-rw-r--r-- | yaksh/xmlrpc_clients.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/xmlrpc_clients.py b/yaksh/xmlrpc_clients.py index 437dbcb..bb8260d 100644 --- a/yaksh/xmlrpc_clients.py +++ b/yaksh/xmlrpc_clients.py @@ -56,10 +56,10 @@ class CodeServerProxy(object): Returns ------- A json string of a dict containing: - {"success": success, "weightage": weightage, "error": error message} + {"success": success, "weight": weight, "error": error message} success - Boolean, indicating if code was executed successfully, correctly - weightage - Float, indicating total weightage of all successful test cases + weight - Float, indicating total weight of all successful test cases error - String, error message if success is false """ @@ -68,7 +68,7 @@ class CodeServerProxy(object): result = server.check_code(language, test_case_type, json_data, user_dir) except ConnectionError: result = json.dumps({'success': False, - 'weightage': 0.0, + 'weight': 0.0, 'error': 'Unable to connect to any code servers!'}) return result |