judge: 修复spj的WA被报告为SystemError的错误

pull/15/head
undefined 4 years ago
parent 65e2cf9613
commit 9ba6bd41f5

@ -1,7 +1,7 @@
{ {
"name": "@hydrooj/hydrojudge", "name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js", "bin": "bin/hydrojudge.js",
"version": "2.1.5", "version": "2.1.6",
"main": "package.json", "main": "package.json",
"author": "masnn", "author": "masnn",
"dependencies": { "dependencies": {

@ -169,7 +169,7 @@ const checkers: Record<string, Checker> = {
...config.copyIn, ...config.copyIn,
}, },
}); });
if (status !== STATUS.STATUS_ACCEPTED) { if (status === STATUS.STATUS_SYSTEM_ERROR) {
return { return {
status: STATUS.STATUS_SYSTEM_ERROR, status: STATUS.STATUS_SYSTEM_ERROR,
score: 0, score: 0,

Loading…
Cancel
Save