w: 编译提速

This commit is contained in:
undefined committed 2021-01-22 13:47:45 +08:00
1 parent 6c6a0df0f0
commit d037560f91
5 files changed
+8 -7

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@ import xml2js from 'xml2js';
import fs from 'fs-extra';
import { filter } from 'lodash';
import decodeHTML from 'decode-html';
import { LocalProblemConfig } from 'hydrooj';
import type { ProblemConfig } from 'hydrooj';
import {
Route, Handler, param, Types,
} from 'hydrooj/dist/service/server';
@@ -31,7 +31,7 @@ class FpsProblemImportHandler extends Handler {
: [],
hint: p.hint,
}, 'html', this.translate.bind(this));
const config: LocalProblemConfig = {
const config: ProblemConfig = {
time: p.time_limit[0]._ + p.time_limit[0].$.unit,
memory: p.memory_limit[0]._ + p.memory_limit[0].$.unit,
};