judge: fix interactor load

This commit is contained in:
undefined committed 2021-02-25 12:26:24 +08:00
1 parent 9c0afa38e3
commit 6decc3c668
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@hydrooj/hydrojudge", "name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js", "bin": "bin/hydrojudge.js",
"version": "2.3.10", "version": "2.3.11",
"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",
+2 -2
View File
@@ -95,8 +95,8 @@ export const judge = async (ctx) => {
copyIn[parseFilename(file)] = { src: file }; copyIn[parseFilename(file)] = { src: file };
} }
return await compile( return await compile(
parseFilename(ctx.checker).split('.')[1], parseFilename(ctx.config.interactor).split('.')[1],
fs.readFileSync(ctx.checker).toString(), fs.readFileSync(ctx.config.interactor).toString(),
'interactor', 'interactor',
copyIn, copyIn,
); );