mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix submit_answer
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "3.1.23",
|
"version": "3.1.24",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ export class JudgeTask {
|
|||||||
isSelfSubmission: this.meta.problemOwner === this.request.uid,
|
isSelfSubmission: this.meta.problemOwner === this.request.uid,
|
||||||
key: md5(`${this.source}/${getConfig('secret')}`),
|
key: md5(`${this.source}/${getConfig('secret')}`),
|
||||||
lang: this.lang,
|
lang: this.lang,
|
||||||
langConfig: this.request.config.type === 'objective' ? null : this.session.getLang(this.lang),
|
langConfig: ['objective', 'submit_answer'].includes(this.request.config.type) ? null : this.session.getLang(this.lang),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
this.stat.judge = new Date();
|
this.stat.judge = new Date();
|
||||||
|
|||||||
Reference in new issue
Block a user