From 7f6d798b5473c8896899155f13ea8a728fb51b8c Mon Sep 17 00:00:00 2001 From: undefined Date: Sat, 16 Dec 2023 20:54:49 +0800 Subject: [PATCH] fix --- packages/hydrooj/src/handler/judge.ts | 2 +- packages/ui-default/templates/record_main_tr.html | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/hydrooj/src/handler/judge.ts b/packages/hydrooj/src/handler/judge.ts index e26431162..ae70a6043 100644 --- a/packages/hydrooj/src/handler/judge.ts +++ b/packages/hydrooj/src/handler/judge.ts @@ -264,7 +264,7 @@ class JudgeConnectionHandler extends ConnectionHandler { if (['next', 'end'].includes(msg.key)) { const rdoc = this.rdocs[msg.rid]; if (!rdoc) return; - if (msg.key === 'next') await next({ ...message, domainId: rdoc.domainId }); + if (msg.key === 'next') await next({ ...msg, domainId: rdoc.domainId }); if (msg.key === 'end') { if (!msg.nop) await end({ judger: this.user._id, ...msg, domainId: rdoc.domainId }).catch((e) => logger.error(e)); this.processing = this.processing.filter((t) => t.rid.toHexString() !== msg.rid); diff --git a/packages/ui-default/templates/record_main_tr.html b/packages/ui-default/templates/record_main_tr.html index db02aac7e..dd1d400f0 100644 --- a/packages/ui-default/templates/record_main_tr.html +++ b/packages/ui-default/templates/record_main_tr.html @@ -26,15 +26,7 @@ {% if rdoc.files.hack %}({{ _('Hack') }}){% endif %} {% if _isPretest %}({{ _('Pretest') }}){% endif %} -