summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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