judge: fix detail option

This commit is contained in:
undefined committed 2025-08-28 17:05:55 +08:00
1 parent 727b29d7a4
commit 29715e0a71
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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];