judge: handle subtaskId for ignored cases

This commit is contained in:
undefined committed 2022-06-23 15:04:10 +08:00
1 parent a665db80c7
commit ef5a2f5334
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@hydrooj/hydrojudge", "name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js", "bin": "bin/hydrojudge.js",
"version": "2.20.5", "version": "2.20.6",
"main": "package.json", "main": "package.json",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
+1
View File
@@ -28,6 +28,7 @@ function judgeCase(c: NormalizedCase, sid: string) {
ctx.next({ ctx.next({
case: { case: {
status: STATUS.STATUS_CANCELED, status: STATUS.STATUS_CANCELED,
subtaskId: ctxSubtask.subtask.id,
score: 0, score: 0,
time: 0, time: 0,
memory: 0, memory: 0,