mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
judge: fix read_cases with subtaskId
This commit is contained in:
1 parent
7d7d3c1599
commit
fda62809a1
2 files changed
+3
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.5.18",
|
||||
"version": "2.5.19",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -123,7 +123,8 @@ async function read1(folder: string, files: string[], checkFile, cfg, rst) {
|
||||
type: 'min',
|
||||
cases: [c],
|
||||
}];
|
||||
} else subtask[REG.subtask(data)].cases.push(c);
|
||||
} else if (!subtask[REG.subtask(data)].cases) subtask[REG.subtask(data)].cases = [c];
|
||||
else subtask[REG.subtask(data)].cases.push(c);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user