mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: export record.pdomain by default
This commit is contained in:
1 parent
040f8a197b
commit
8852aa149b
9 files changed
+16
-16
No files matched your search
@@ -266,7 +266,6 @@ export class ProblemModel {
|
||||
const range = { $in: parsed[task].map((i) => i.pid) };
|
||||
const q: any = { $or: [{ docId: range }, { pid: range }] };
|
||||
if (!getHidden) q.hidden = false;
|
||||
console.log(task, parsed[task]);
|
||||
tasks.push(document.getMulti(task, document.TYPE_PROBLEM, q).project(buildProjection(projection)).toArray());
|
||||
}
|
||||
const pdocs = flatten(await Promise.all(tasks));
|
||||
|
||||
@@ -22,6 +22,7 @@ class RecordModel {
|
||||
'_id', 'score', 'time', 'memory', 'lang',
|
||||
'uid', 'pid', 'rejudged', 'hidden', 'progress',
|
||||
'contest', 'effective', 'judger', 'judgeAt', 'status',
|
||||
'pdomain',
|
||||
];
|
||||
|
||||
static async submissionPriority(uid: number, base: number = 0) {
|
||||
|
||||
Reference in new issue
Block a user