From 31aafa211850c8d5ad7c70ba4c2118303f2f2bf5 Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 19 Jul 2021 11:26:52 +0800 Subject: [PATCH] Update record.ts --- packages/hydrooj/src/handler/record.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hydrooj/src/handler/record.ts b/packages/hydrooj/src/handler/record.ts index c6c59b1ff..c7addc0a7 100644 --- a/packages/hydrooj/src/handler/record.ts +++ b/packages/hydrooj/src/handler/record.ts @@ -239,7 +239,7 @@ class RecordMainConnectionHandler extends ConnectionHandler { if (pdoc.hidden && !this.user.own(pdoc) && !this.user.hasPerm(PERM.PERM_VIEW_PROBLEM_HIDDEN)) pdoc = null; if (!this.user.hasPerm(PERM.PERM_VIEW_PROBLEM)) pdoc = null; } - if (rdoc.input) this.send({ rdoc }); + if (this.pretest) this.send({ rdoc }); else { this.send({ html: await this.renderHTML('record_main_tr.html', {