mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01: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",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.3.10",
|
||||
"version": "2.3.11",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -95,8 +95,8 @@ export const judge = async (ctx) => {
|
||||
copyIn[parseFilename(file)] = { src: file };
|
||||
}
|
||||
return await compile(
|
||||
parseFilename(ctx.checker).split('.')[1],
|
||||
fs.readFileSync(ctx.checker).toString(),
|
||||
parseFilename(ctx.config.interactor).split('.')[1],
|
||||
fs.readFileSync(ctx.config.interactor).toString(),
|
||||
'interactor',
|
||||
copyIn,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user