diff options
author | mc1824@student.uni-lj.si <mc1824@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-25 22:09:21 +0000 |
---|---|---|
committer | mc1824@student.uni-lj.si <mc1824@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-01-25 22:09:21 +0000 |
commit | 793efd5a514b50465681e9305842337f547d4020 (patch) | |
tree | faca2130f1fb426becd1bc16f93e72286b00268f /kpov_judge/tasks/copy_rename_100_files | |
parent | d017cb67820f9b3dc3810459896deeedcbefa430 (diff) |
Bugfix
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@233 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/copy_rename_100_files')
-rw-r--r-- | kpov_judge/tasks/copy_rename_100_files/task.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kpov_judge/tasks/copy_rename_100_files/task.py b/kpov_judge/tasks/copy_rename_100_files/task.py index 87ef7e9..ff82956 100644 --- a/kpov_judge/tasks/copy_rename_100_files/task.py +++ b/kpov_judge/tasks/copy_rename_100_files/task.py @@ -99,11 +99,13 @@ def task_check(results, params): score += 2 * (matched > len(files)/2) score += 3 * (matched == len(files)) - rl = set(results['contents'].split('\n')) - tl = set() + rl = results['contents'].split('\n') + rl.sort() + tl = [] for fn in files: with open(fn) as f: - tl.update(set(f.read().split('\n'))) + tl += f.read().upper().split('\n') + tl.sort() score += 4 * (rl == tl) return score |