From 1be8dd6acfe46396b599cb1e2b9ebb22b0d98b98 Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Mon, 24 Nov 2014 20:23:14 +0000 Subject: Started work on updating add_task to make the web interface functional after the test_task.py rewrite git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@12 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/set_motd/task.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kpov_judge/tasks') diff --git a/kpov_judge/tasks/set_motd/task.py b/kpov_judge/tasks/set_motd/task.py index 696407c..8213ecd 100644 --- a/kpov_judge/tasks/set_motd/task.py +++ b/kpov_judge/tasks/set_motd/task.py @@ -60,6 +60,7 @@ def task(peer_ip, peer_user, peer_passwd, niz): "Check whether ssh works" import pxssh import pexpect + return {"hello": 'kitty'} results = dict() s = pxssh.pxssh() s.login (peer_ip, peer_user, peer_passwd, original_prompt=r'{0}@.*:\~\$'.format(peer_user),auto_prompt_reset=False) @@ -72,6 +73,7 @@ def gen_params(user_id, params_meta): return kpov_random_helpers.default_gen(user_id, params_meta) def task_check(results, params): + print task_url niz = params['niz'] niz=niz.replace("#","") score = 0 -- cgit v1.2.1