mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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/
|
server_url: http://backend-service.hydro-namespace.svc.cluster.local:8080/
|
||||||
uname: root
|
uname: root
|
||||||
password: rootroot
|
password: rootroot
|
||||||
detail: true
|
detail: full
|
||||||
|
|
||||||
Global:
|
Global:
|
||||||
Mongo:
|
Mongo:
|
||||||
|
|||||||
+1
-1
@@ -251,7 +251,7 @@ hosts:
|
|||||||
server_url: https://hydro.ac/
|
server_url: https://hydro.ac/
|
||||||
uname: judge
|
uname: judge
|
||||||
password: examplepassword
|
password: examplepassword
|
||||||
detail: true
|
detail: full
|
||||||
concurrency: 2
|
concurrency: 2
|
||||||
tmpfs_size: 512m
|
tmpfs_size: 512m
|
||||||
stdio_size: 256m
|
stdio_size: 256m
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { fs } from '@hydrooj/utils';
|
|||||||
import * as sysinfo from '@hydrooj/utils/lib/sysinfo';
|
import * as sysinfo from '@hydrooj/utils/lib/sysinfo';
|
||||||
import {
|
import {
|
||||||
Context as HydroContext, db, JudgeHandler, JudgeResultCallbackContext,
|
Context as HydroContext, db, JudgeHandler, JudgeResultCallbackContext,
|
||||||
ObjectId, RecordModel, SettingModel, StorageModel, SystemModel, TaskModel,
|
ObjectId, RecordModel, SettingModel, StorageModel, TaskModel,
|
||||||
} from 'hydrooj';
|
} from 'hydrooj';
|
||||||
import { langs } from 'hydrooj/src/model/setting';
|
import { langs } from 'hydrooj/src/model/setting';
|
||||||
import { getConfig } from '../config';
|
import { getConfig } from '../config';
|
||||||
@@ -18,7 +18,7 @@ import { versionCheck } from '../sandbox';
|
|||||||
import { JudgeTask } from '../task';
|
import { JudgeTask } from '../task';
|
||||||
|
|
||||||
const session: Session = {
|
const session: Session = {
|
||||||
config: { detail: SystemModel.get('hydrojudge.detail') },
|
config: { detail: getConfig('detail') },
|
||||||
async fetchFile(namespace, files) {
|
async fetchFile(namespace, files) {
|
||||||
if (namespace === null) {
|
if (namespace === null) {
|
||||||
const name = Object.keys(files)[0].split('#')[0];
|
const name = Object.keys(files)[0].split('#')[0];
|
||||||
|
|||||||
Reference in new issue
Block a user