diff options
author | Aleš Smodiš <aless@guru.si> | 2015-08-25 14:22:58 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-08-25 14:22:58 +0200 |
commit | 1973db21715555e7b668c83e6aace2c7499f8eaa (patch) | |
tree | 62efa953e62caf98bec6f3daf4459f1d15e9a033 /js/codeq/comms.js | |
parent | 21d213dcff1367c16dc0c3f6585b8e35d7c2f0c7 (diff) |
Login now fetches the list of available problems from the server.
Made the query work, so terminal interaction now works.
Diffstat (limited to 'js/codeq/comms.js')
-rw-r--r-- | js/codeq/comms.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/codeq/comms.js b/js/codeq/comms.js index fb5d348..d2c2910 100644 --- a/js/codeq/comms.js +++ b/js/codeq/comms.js @@ -59,6 +59,15 @@ sendQuery: function commsSendQuery (json) { json['sid'] = codeq.sid; return send('query', codeq.jsonize(json)); + }, + + getProblem: function commsGetProblem (language, problem_group, problem) { + return send('get_problem', codeq.jsonize({ + 'sid': codeq.sid, + 'language': language, + 'problem_group': problem_group, + 'problem': problem + })); } }; })(); |