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
@@ -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