mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
judge: ignore fail when subtaskType isn't min
This commit is contained in:
1 parent
88eae576dc
commit
81c1e0cfd8
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.10.5",
|
||||
"version": "2.10.6",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -18,7 +18,7 @@ const Score = {
|
||||
|
||||
function judgeCase(c, sid: string) {
|
||||
return async (ctx, ctxSubtask) => {
|
||||
if (ctx.failed[sid] || ctx.errored
|
||||
if (ctx.errored || (ctx.failed[sid] && ctxSubtask.subtask.type === 'min')
|
||||
|| (ctxSubtask.subtask.type === 'max' && ctxSubtask.score === ctxSubtask.subtask.score)
|
||||
|| ((ctxSubtask.subtask.if || []).filter((i: string) => ctx.failed[i]).length)
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user