judge: bug fix

This commit is contained in:
undefined committed 2021-07-09 19:58:01 +08:00
1 parent 719cc0570c
commit 0cb5a9597f
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ export default async function readYamlCases(cfg: Record<string, any> = {}, check
});
}
config.subtasks.push({
score: parseInt(subtask.score, 10),
score: parseInt(subtask.score, 10) || 100,
if: subtask.if || [],
cases,
type: subtask.type || 'min',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/utils",
"version": "1.0.23",
"version": "1.0.24",
"description": "hydrooj utils",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",