summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks
diff options
context:
space:
mode:
authoruh6557@student.uni-lj.si <uh6557@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-15 19:27:30 +0000
committeruh6557@student.uni-lj.si <uh6557@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-15 19:27:30 +0000
commit8e197f0a07e743f7f9163f64fa03056efc81b797 (patch)
tree6c4dda8b47904abde58d2d7a0601adc32af72f02 /kpov_judge/tasks
parent48b10bed216de5fac542832e7874a24e6b5e2541 (diff)
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
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r--kpov_judge/tasks/openvpn_simple_smb/task.py8
1 files changed, 4 insertions, 4 deletions
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