mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&ui: optimize scoreboard nAccept and nSubmit calculation
This commit is contained in:
1 parent
d9fdcc9b7c
commit
6ddaa8cf0c
6 files changed
+63
-33
No files matched your search
@@ -236,11 +236,7 @@ export class ContestScoreboardHandler extends ContestDetailBaseHandler {
|
||||
await this.exportScoreboard(domainId, tid, ext);
|
||||
return;
|
||||
}
|
||||
const pdict = await problem.getList(domainId, this.tdoc.pids, true, undefined, false, [
|
||||
// Problem statistics display is allowed as we can view submission info in scoreboard.
|
||||
...problem.PROJECTION_CONTEST_LIST, 'nSubmit', 'nAccept',
|
||||
]);
|
||||
const [, rows, udict] = await contest.getScoreboard.call(this, domainId, tid, false);
|
||||
const [, rows, udict, pdict] = await contest.getScoreboard.call(this, domainId, tid, false);
|
||||
this.response.template = 'contest_scoreboard.html';
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
const page_name = this.tdoc.rule === 'homework'
|
||||
|
||||
Reference in new issue
Block a user