mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: update pid display
This commit is contained in:
1 parent
a6f48233d1
commit
f4127a806a
4 files changed
+14
-9
No files matched your search
@@ -8,7 +8,7 @@ contest_detail: Contest Detail
|
||||
contest_edit: Contest Edit
|
||||
contest_files: Contest Files
|
||||
contest_main: Contest
|
||||
contest_problemlist: Proble List
|
||||
contest_problemlist: Problem List
|
||||
contest_scoreboard: Scoreboard
|
||||
discussion_create: Create Discussion
|
||||
discussion_detail: Discussion Detail
|
||||
|
||||
@@ -252,8 +252,9 @@ export class ContestProblemListHandler extends ContestDetailBaseHandler {
|
||||
if (contest.canShowSelfRecord.call(this, this.tdoc)) {
|
||||
[this.response.body.rdict, this.response.body.rdocs] = await Promise.all([
|
||||
record.getList(domainId, psdocs.map((i: any) => i.rid)),
|
||||
await record.getMulti(domainId, { tid, uid: this.user._id }).toArray(),
|
||||
await record.getMulti(domainId, { tid, uid: this.user._id }).sort({ _id: -1 }).toArray(),
|
||||
]);
|
||||
this.response.body.canViewRecord = true;
|
||||
} else {
|
||||
for (const i of psdocs) this.response.body.rdict[i.rid] = { _id: i.rid };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user