From 793efd5a514b50465681e9305842337f547d4020 Mon Sep 17 00:00:00 2001 From: "mc1824@student.uni-lj.si" Date: Sun, 25 Jan 2015 22:09:21 +0000 Subject: Bugfix git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@233 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/copy_rename_100_files/task.py | 8 +++++--- 1 file 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 -- cgit v1.2.1