mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: bug fix
This commit is contained in:
1 parent
f3d098af85
commit
ac66e3d7a2
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.39.26",
|
"version": "2.39.27",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ async function runProblem(...arg: any[]) {
|
|||||||
uid: {
|
uid: {
|
||||||
$nin: [
|
$nin: [
|
||||||
pdoc.owner,
|
pdoc.owner,
|
||||||
system.get('rank.uidIgnore').split(',').map((i) => +i).filter((i) => i),
|
...system.get('rank.uidIgnore').split(',').map((i) => +i).filter((i) => i),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -139,7 +139,7 @@ async function runInDomain(id: string, isSub: boolean, report: Function) {
|
|||||||
], (a, b) => a.uid === b.uid);
|
], (a, b) => a.uid === b.uid);
|
||||||
for (const dudoc of dudocs) deltaudict[dudoc.uid] = dudoc.rpdelta;
|
for (const dudoc of dudocs) deltaudict[dudoc.uid] = dudoc.rpdelta;
|
||||||
// TODO pagination
|
// TODO pagination
|
||||||
const problems = await problem.getMulti('', { domainId, hidden: false }).toArray();
|
const problems = await problem.getMulti('', { domainId, nSubmit: { $gt: 0 }, hidden: false }).toArray();
|
||||||
await report({ message: `Found ${problems.length} problems in ${id}` });
|
await report({ message: `Found ${problems.length} problems in ${id}` });
|
||||||
for (const i in problems) {
|
for (const i in problems) {
|
||||||
const pdoc = problems[i];
|
const pdoc = problems[i];
|
||||||
|
|||||||
Reference in new issue
Block a user