summaryrefslogtreecommitdiff
path: root/kpov_judge
diff options
context:
space:
mode:
authorpl9506@student.uni-lj.si <pl9506@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-01-25 14:35:43 +0000
committerpl9506@student.uni-lj.si <pl9506@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-01-25 14:35:43 +0000
commitdda6ece82d2c5ae087a32c8aa84c73779d480088 (patch)
treeda4955f36b8d71a137e242780baa8bad89fb5da1 /kpov_judge
parent6980c19d938b2a83edd6a82ae5223dc2644c59cd (diff)
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
Diffstat (limited to 'kpov_judge')
-rw-r--r--kpov_judge/tasks/copy_rename_20_files_tail_env/task.py19
1 files 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