mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
judge: fix detail option
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -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
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user