core: fix oi contest problem_view

This commit is contained in:
undefined committed 2022-02-12 15:25:26 +08:00
1 parent 66c5c6b560
commit 5ffb9c4b93
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.4.22",
"version": "3.4.23",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+1 -1
View File
@@ -294,7 +294,7 @@ export class ProblemDetailHandler extends ProblemHandler {
if (contest.isNotStarted(this.tdoc)) throw new ContestNotLiveError(tid);
if (!contest.isDone(this.tdoc) && !this.tsdoc?.attend) throw new ContestNotAttendedError(tid);
this.pdoc.tag.length = 0;
if (!contest.canShowScoreboard(this.tdoc) || !contest.isLocked(this.tdoc)) {
if (!contest.canShowScoreboard.call(this, this.tdoc) || !contest.isLocked(this.tdoc)) {
delete this.pdoc.nAccept;
delete this.pdoc.nSubmit;
delete this.pdoc.difficulty;