mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
judge: fix subtask deps
This commit is contained in:
1 parent
7799e1fed7
commit
659aa4b2a5
2 files changed
+2
-2
No files matched your search
@@ -166,7 +166,7 @@ export const judge = async (ctx) => {
|
||||
for (const sid in ctx.config.subtasks) {
|
||||
let effective = true;
|
||||
for (const required of ctx.config.subtasks[sid].if || []) {
|
||||
if (ctx.failed[required]) effective = false;
|
||||
if (ctx.failed[required.toString()]) effective = false;
|
||||
}
|
||||
if (effective) ctx.total_score += scores[sid];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user