mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
judge: add subtask.id check
This commit is contained in:
1 parent
0fcea720a9
commit
f16a65a7ed
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.20.4",
|
||||
"version": "2.20.5",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -148,7 +148,7 @@ function judgeSubtask(subtask: NormalizedSubtask, sid: string) {
|
||||
};
|
||||
const cases = [];
|
||||
for (const cid in subtask.cases) {
|
||||
const runner = judgeCase(subtask.cases[cid], sid);
|
||||
const runner = judgeCase(subtask.cases[cid], subtask.id.toString() ?? sid);
|
||||
cases.push(ctx.queue.add(() => runner(ctx, ctxSubtask, runner)));
|
||||
}
|
||||
await Promise.all(cases).catch((e) => {
|
||||
|
||||
Reference in new issue
Block a user