From d3e883955f75f7e85a12af081c0612f56c425856 Mon Sep 17 00:00:00 2001 From: "mz6830@student.uni-lj.si" Date: Fri, 12 Dec 2014 15:20:56 +0000 Subject: git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@47 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/smb_nfs/task.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'kpov_judge/tasks/smb_nfs') diff --git a/kpov_judge/tasks/smb_nfs/task.py b/kpov_judge/tasks/smb_nfs/task.py index 0efd406..b434c42 100644 --- a/kpov_judge/tasks/smb_nfs/task.py +++ b/kpov_judge/tasks/smb_nfs/task.py @@ -95,6 +95,18 @@ def gen_params(user_id, params_meta): return params def task_check(results, params): + + score = 0 + names = [] + for key in results.keys(): + names.append(key) + + for i in range(len(names)): + if results[names[i]] is params[names[i]]: + score = score + 1 + + return score + """ import re score = -9 if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1: @@ -107,6 +119,7 @@ def task_check(results, params): score += 2 score = 0 return score + """ def prepare_disks(templates, params): # d = templates['simpleArbiterDhcp'] -- cgit v1.2.1