summaryrefslogtreecommitdiff
path: root/kpov_judge
diff options
context:
space:
mode:
authorpk2359@student.uni-lj.si <pk2359@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-15 21:57:49 +0000
committerpk2359@student.uni-lj.si <pk2359@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-15 21:57:49 +0000
commitb797a8f2735e3e4c40687745bfd377178e950a1f (patch)
tree94d40e7876f8255cd409a5a1cc56169903ad947d /kpov_judge
parent4659d83ee6b84a53fb8fe7368f4168667861706b (diff)
testiram
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@82 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge')
-rw-r--r--kpov_judge/tasks/custom_rdate/task.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kpov_judge/tasks/custom_rdate/task.py b/kpov_judge/tasks/custom_rdate/task.py
index ef78637..2986242 100644
--- a/kpov_judge/tasks/custom_rdate/task.py
+++ b/kpov_judge/tasks/custom_rdate/task.py
@@ -109,7 +109,7 @@ def gen_params(user_id, params_meta):
def task_check(results, params):
import re
- score = -9
+ score = 0
if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1:
score += 3
if results['static_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_static'])) > -1:
@@ -118,7 +118,7 @@ def task_check(results, params):
score += 2
if not re.search(r'eth0 +802-.*connected', results['static_nmcli']):
score += 2
- score = 0
+ #score = 0
return score
def prepare_disks(templates, params):