From dda6ece82d2c5ae087a32c8aa84c73779d480088 Mon Sep 17 00:00:00 2001 From: "pl9506@student.uni-lj.si" Date: Sun, 25 Jan 2015 14:35:43 +0000 Subject: Updated task_check with task keys.. Still waiting for gen_params... git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@230 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- .../tasks/copy_rename_20_files_tail_env/task.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py index e7c0ad7..d970288 100644 --- a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py +++ b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py @@ -116,6 +116,7 @@ def task(): return results def gen_params(user_id, params_meta): + #PLEASE FINISH gen_params I NEED IT FOR TASK CHECK (Primoz Lavric) import random params = dict() r = random.Random(user_id) @@ -138,31 +139,31 @@ def task_check(results, params): #TO FINISH SCORING WE REQUIRE DICT KEYS AND FUNCTIONS gen_params AND task TO BE FINISHED #POINTS FOR EACH TASK MAY BE ADJUSTED IN THE FUTURE #TASK 1 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['preimenuj'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 1 #TASK 2 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['novi'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 1 #TASK 3 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['mojimenik'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 1 #TASK 4 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['mamatxt'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 1 #TAKS 5 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['napaketxt'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 1 #TASK 6 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['curl'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 1 #TASK 7 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['count'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 1 #TASK 8 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['cowsay'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 1 #TASK 9 - if results['NoNameATM'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: + if results['phttp'].find('NoFormatATM'.format(params['NoNameAtm'])) > -1: score += 2 return score -- cgit v1.2.1