mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
fps-import: fix testdata import (#892)
This commit is contained in:
1 parent
affdadf3d2
commit
d13b67dfad
1 file changed
+1
-1
@@ -47,7 +47,7 @@ class FpsProblemImportHandler extends Handler {
|
||||
// `filename` attribute introduced by winterant/OnlineJudge
|
||||
// PLEASE, respect the spec
|
||||
const filename = node.$?.filename || `${id}.${ext}`;
|
||||
const c = node._ || node;
|
||||
const c = node._ || (typeof node === 'string' ? node : '');
|
||||
tasks.push(ProblemModel.addTestdata(domainId, pid, filename, Buffer.from(c)));
|
||||
};
|
||||
if (p.test_output) {
|
||||
|
||||
Reference in new issue
Block a user