mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: config.detail
This commit is contained in:
1 parent
38b5d8d1ac
commit
255fba8339
10 files changed
+20
-18
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.33.16",
|
||||
"version": "2.33.17",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
@@ -19,7 +19,7 @@
|
||||
"cookies": "^0.8.0",
|
||||
"detect-browser": "^5.2.0",
|
||||
"fs-extra": "^10.0.0",
|
||||
"graphql": "^15.5.1",
|
||||
"graphql": "^15.5.2",
|
||||
"graphql-scalars": "^1.10.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"koa": "^2.13.1",
|
||||
@@ -33,7 +33,7 @@
|
||||
"mime-types": "^2.1.32",
|
||||
"minio": "7.0.17",
|
||||
"moment-timezone": "^0.5.33",
|
||||
"mongodb": "^3.6.11",
|
||||
"mongodb": "^3.6.12",
|
||||
"nanoid": "^3.1.25",
|
||||
"nodemailer": "^6.6.3",
|
||||
"p-queue": "^7.1.0",
|
||||
|
||||
@@ -158,6 +158,7 @@ export interface ProblemConfigFile {
|
||||
interactor?: string;
|
||||
user_extra_files?: string[];
|
||||
judge_extra_files?: string[];
|
||||
detail?: boolean;
|
||||
outputs?: [string, number][];
|
||||
cases?: TestCaseConfig[];
|
||||
subtasks?: SubtaskConfig[];
|
||||
|
||||
@@ -135,7 +135,7 @@ class RecordModel {
|
||||
const res = await RecordModel.coll.insertOne(data);
|
||||
if (addTask) {
|
||||
const priority = await RecordModel.submissionPriority(uid, isContest ? 50 : 0);
|
||||
await RecordModel.judge(domainId, res.insertedId, priority);
|
||||
await RecordModel.judge(domainId, res.insertedId, priority, isContest ? { detail: false } : {});
|
||||
}
|
||||
return res.insertedId;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user