From 649cc21f1216a171339c0abe36aeaf85b3709fb6 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 6 Oct 2021 16:50:13 +0800 Subject: [PATCH] judge: fix detail priority --- packages/hydrojudge/package.json | 2 +- packages/hydrojudge/src/hosts/hydro.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 0b2ddc974..6621e5723 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "2.11.6", + "version": "2.11.7", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git", diff --git a/packages/hydrojudge/src/hosts/hydro.ts b/packages/hydrojudge/src/hosts/hydro.ts index c173cb64e..8bb6a85b4 100644 --- a/packages/hydrojudge/src/hosts/hydro.ts +++ b/packages/hydrojudge/src/hosts/hydro.ts @@ -112,7 +112,7 @@ class JudgeTask { this.stat.read_cases = new Date(); this.config = await readCases( this.folder, - { ...this.config, detail: this.session.config.detail }, + { detail: this.session.config.detail, ...this.config }, { next: this.next, key: md5(`${this.domainId}${this.pid}${getConfig('secret')}`) }, ); this.stat.judge = new Date();