judge: fix submit_answer

This commit is contained in:
undefined committed 2023-03-28 20:53:55 +08:00
1 parent f72b221497
commit ef12f1d023
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "3.1.23",
"version": "3.1.24",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -118,7 +118,7 @@ export class JudgeTask {
isSelfSubmission: this.meta.problemOwner === this.request.uid,
key: md5(`${this.source}/${getConfig('secret')}`),
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();