add custom checker

This commit is contained in:
Dinh 2020-01-23 20:32:46 -06:00
parent 184fa549e0
commit 25ebc87db8
8 changed files with 601 additions and 2 deletions

View file

@ -64,6 +64,11 @@ class ProblemDataCompiler(object):
cases.append(batch)
def make_checker(case):
if (case.checker == 'custom'):
custom_checker_path = split_path_first(case.custom_checker.name)
if len(custom_checker_path) != 2:
raise ProblemDataError(_('How did you corrupt the custom checker path?'))
return(custom_checker_path[1])
if case.checker_args:
return {
'name': case.checker,