From 8e197f0a07e743f7f9163f64fa03056efc81b797 Mon Sep 17 00:00:00 2001 From: "uh6557@student.uni-lj.si" Date: Mon, 15 Dec 2014 19:27:30 +0000 Subject: Na zacetku nastavil score na 0 git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@79 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/openvpn_simple_smb/task.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kpov_judge') diff --git a/kpov_judge/tasks/openvpn_simple_smb/task.py b/kpov_judge/tasks/openvpn_simple_smb/task.py index 486ddef..59a73fe 100644 --- a/kpov_judge/tasks/openvpn_simple_smb/task.py +++ b/kpov_judge/tasks/openvpn_simple_smb/task.py @@ -259,8 +259,8 @@ def gen_params(user_id, params_meta): def task_check(results, params): import re - - score = -9 + #nastavil score na 0 iz -9 + score = 0 if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1: score += 3 @@ -270,8 +270,8 @@ def task_check(results, params): score += 2 if not re.search(r'eth0 +802-.*connected', results['static_nmcli']): score += 2 - - score = 0 + # to stran + # score = 0 return score -- cgit v1.2.1