utils: apply default limit to normalizeSubtasks

This commit is contained in:
undefined committed 2022-05-11 12:16:34 +08:00
1 parent 488a440d39
commit fed6daae51
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -267,7 +267,7 @@ interface NormalizedSubtask extends Required<ParsedSubtask> {
export function normalizeSubtasks(
subtasks: ParsedSubtask[], checkFile: (name: string, errMsg: string) => string,
time: number | string, memory: number | string, ignoreParseError = false,
time: number | string = '1000ms', memory: number | string = '256m', ignoreParseError = false,
): NormalizedSubtask[] {
subtasks.sort((a, b) => (a.id - b.id));
const subtaskScore = getScore(
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/utils",
"version": "1.2.0",
"version": "1.2.1",
"description": "hydrooj utils",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",