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', {