core: fix syzoj2 bulk import

This commit is contained in:
undefined committed 2021-09-22 15:36:44 +08:00
1 parent f21ff16ef1
commit a5838cb4cc
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -316,7 +316,7 @@ class ProblemImportSYZOJHandler extends Handler {
// eslint-disable-next-line no-await-in-loop
if (version === 3) await this.v3(domainId, undefined, hidden, protocol, host, i, true).catch(noop);
// eslint-disable-next-line no-await-in-loop
else await this.v2(domainId, undefined, hidden, prefix + i).catch(noop);
else await this.v2(domainId, undefined, hidden, `${prefix + i}/`).catch(noop);
logger.info('%s %d-%d-%d', prefix, start, i, end);
}
})().catch(logger.error);