mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: import: set tag
This commit is contained in:
1 file changed
+1
-1
@@ -438,7 +438,7 @@ export class ProblemModel {
|
|||||||
const overrideContent = findOverrideContent(path.join(tmpdir, i));
|
const overrideContent = findOverrideContent(path.join(tmpdir, i));
|
||||||
const docId = await ProblemModel.add(
|
const docId = await ProblemModel.add(
|
||||||
domainId, pid, pdoc.title, overrideContent || pdoc.content,
|
domainId, pid, pdoc.title, overrideContent || pdoc.content,
|
||||||
operator || pdoc.owner, pdoc.tag, pdoc.hidden,
|
operator || pdoc.owner, pdoc.tag || [], pdoc.hidden,
|
||||||
);
|
);
|
||||||
if (files.includes('testdata')) {
|
if (files.includes('testdata')) {
|
||||||
const datas = await fs.readdir(path.join(tmpdir, i, 'testdata'), { withFileTypes: true });
|
const datas = await fs.readdir(path.join(tmpdir, i, 'testdata'), { withFileTypes: true });
|
||||||
|
|||||||
Reference in new issue
Block a user