Rename problem data fields
This commit is contained in:
parent
acdf94a8c9
commit
5e72b472e6
8 changed files with 277 additions and 170 deletions
|
@ -82,8 +82,8 @@ class ProblemDataCompiler(object):
|
|||
)
|
||||
return custom_checker_path[1]
|
||||
|
||||
if case.checker == "customval":
|
||||
custom_checker_path = split_path_first(case.custom_validator.name)
|
||||
if case.checker == "customcpp":
|
||||
custom_checker_path = split_path_first(case.custom_checker_cpp.name)
|
||||
if len(custom_checker_path) != 2:
|
||||
raise ProblemDataError(
|
||||
_("How did you corrupt the custom checker path?")
|
||||
|
@ -98,7 +98,7 @@ class ProblemDataCompiler(object):
|
|||
}
|
||||
|
||||
if case.checker == "testlib":
|
||||
custom_checker_path = split_path_first(case.custom_validator.name)
|
||||
custom_checker_path = split_path_first(case.custom_checker_cpp.name)
|
||||
if len(custom_checker_path) != 2:
|
||||
raise ProblemDataError(
|
||||
_("How did you corrupt the custom checker path?")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue