mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: fix interactor load
This commit is contained in:
1 parent
9c0afa38e3
commit
6decc3c668
2 files changed
+3
-3
No files matched your search
@@ -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",
|
||||||
|
|||||||
@@ -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,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user