summaryrefslogtreecommitdiff
path: root/kpov_judge
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge')
-rwxr-xr-xkpov_judge/web/kpov_judge/kpov_judge.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kpov_judge/web/kpov_judge/kpov_judge.py b/kpov_judge/web/kpov_judge/kpov_judge.py
index db2359d..2febf9a 100755
--- a/kpov_judge/web/kpov_judge/kpov_judge.py
+++ b/kpov_judge/web/kpov_judge/kpov_judge.py
@@ -92,8 +92,7 @@ def results_post(class_id, task_id, results):
task_check_source = db.task_checkers.find_one({'class_id': class_id, 'task_id': task_id})['source']
d = {}
exec(compile(task_check_source, 'checker.py', 'exec'), globals(), d)
- # raise Exception(str(params))
- res, hints = d['task_check'](results, params)
+ res, hints = d['task_check'](collections.defaultdict(str, results), params)
except Exception as e:
hints = ["Checker died: " + str(e)]
res = 0