ui: 为使用文件IO的题目添加标记

This commit is contained in:
undefined committed 2021-07-26 13:58:46 +08:00
1 parent a340902203
commit 336cff75f2
6 files changed
+9 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.29.43",
"version": "2.29.44",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
@@ -36,6 +36,10 @@ export async function parseConfig(config: string | ProblemConfigFile = {}) {
result.timeMax = result.timeMin = 1000;
}
if (cfg.langs) result.langs = cfg.langs;
if (cfg.filename && result.type === 'default') {
result.type = 'fileio';
result.subType = cfg.filename;
}
return result;
}