judge: fix interactive(testlib)

This commit is contained in:
undefined committed 2021-05-13 12:33:46 +08:00
1 parent 7c6e97fdfc
commit a5f8f02d8e
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": "2.6.2",
"version": "2.6.3",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -101,7 +101,7 @@ export const judge = async (ctx) => {
return await compile(ctx.getLang(ctx.lang), ctx.code, 'code', copyIn, ctx.next);
})(),
(async () => {
const copyIn = { 'testlib.h': testlibSrc };
const copyIn = { 'testlib.h': { src: testlibSrc } };
for (const file of ctx.config.judge_extra_files) {
copyIn[parseFilename(file)] = { src: file };
}