mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix syzoj2 bulk import
This commit is contained in:
1 parent
f21ff16ef1
commit
a5838cb4cc
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.37.5",
|
||||
"version": "2.37.6",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user