diff --git a/install/helm-single/values.yaml b/install/helm-single/values.yaml index 3ec5676ac..a489ce6aa 100644 --- a/install/helm-single/values.yaml +++ b/install/helm-single/values.yaml @@ -29,7 +29,7 @@ Judge: server_url: http://backend-service.hydro-namespace.svc.cluster.local:8080/ uname: root password: rootroot - detail: true + detail: full Global: Mongo: diff --git a/install/install.ts b/install/install.ts index be300d404..61bc54b85 100644 --- a/install/install.ts +++ b/install/install.ts @@ -251,7 +251,7 @@ hosts: server_url: https://hydro.ac/ uname: judge password: examplepassword - detail: true + detail: full concurrency: 2 tmpfs_size: 512m stdio_size: 256m diff --git a/packages/hydrojudge/src/hosts/builtin.ts b/packages/hydrojudge/src/hosts/builtin.ts index b4468ed84..393743ca4 100644 --- a/packages/hydrojudge/src/hosts/builtin.ts +++ b/packages/hydrojudge/src/hosts/builtin.ts @@ -5,7 +5,7 @@ import { fs } from '@hydrooj/utils'; import * as sysinfo from '@hydrooj/utils/lib/sysinfo'; import { Context as HydroContext, db, JudgeHandler, JudgeResultCallbackContext, - ObjectId, RecordModel, SettingModel, StorageModel, SystemModel, TaskModel, + ObjectId, RecordModel, SettingModel, StorageModel, TaskModel, } from 'hydrooj'; import { langs } from 'hydrooj/src/model/setting'; import { getConfig } from '../config'; @@ -18,7 +18,7 @@ import { versionCheck } from '../sandbox'; import { JudgeTask } from '../task'; const session: Session = { - config: { detail: SystemModel.get('hydrojudge.detail') }, + config: { detail: getConfig('detail') }, async fetchFile(namespace, files) { if (namespace === null) { const name = Object.keys(files)[0].split('#')[0];