mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
fix
This commit is contained in:
2 files changed
+2
-10
No files matched your search
@@ -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);
|
||||
|
||||
@@ -26,15 +26,7 @@
|
||||
{% if rdoc.files.hack %}<span class="text-orange">({{ _('Hack') }})</span>{% endif %}
|
||||
{% if _isPretest %}<span class="text-orange">({{ _('Pretest') }})</span>{% endif %}
|
||||
</td>
|
||||
<td class="col--submit-by">
|
||||
<a href="{{ url('user_detail', uid=rdoc.uid) }}">
|
||||
{% if handler.user.hasPerm(perm.PERM_VIEW_DISPLAYNAME) and udoc.displayName %}
|
||||
{{ udoc.displayName }} ({{ udoc.uname }})
|
||||
{% else %}
|
||||
{{ udoc.uname }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</td>
|
||||
<td class="col--submit-by">{{ user.render_inline(udoc, avatar=false, badge=false) }}</td>
|
||||
<td class="col--time">{% if rdoc['time'] %}{% if [STATUS.STATUS_TIME_LIMIT_EXCEEDED, STATUS.STATUS_MEMORY_LIMIT_EXCEEDED, STATUS.STATUS_OUTPUT_LIMIT_EXCEEDED].includes(rdoc['status']) %}≥{% endif %}{{ rdoc.time|round|int }}ms{% else %}-{% endif %}</td>
|
||||
<td class="col--memory">{% if rdoc['memory'] %}{% if [STATUS.STATUS_TIME_LIMIT_EXCEEDED, STATUS.STATUS_MEMORY_LIMIT_EXCEEDED, STATUS.STATUS_OUTPUT_LIMIT_EXCEEDED].includes(rdoc['status']) %}≥{% endif %}{{ size(rdoc.memory, 1024) }}{% else %}-{% endif %}</td>
|
||||
<td class="col--lang">{{ model.setting.langs[rdoc['lang']].display }}</td>
|
||||
|
||||
Reference in new issue
Block a user