judge: bug fix

pull/162/head
undefined 3 years ago
parent 719cc0570c
commit 0cb5a9597f

@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.8.17",
"version": "2.8.18",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",

@ -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,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",

Loading…
Cancel
Save