mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
bump version
This commit is contained in:
26 files changed
+136
-81
No files matched your search
@@ -124,7 +124,7 @@ export class ProblemMainHandler extends Handler {
|
||||
const category = parsed.category || [];
|
||||
const text = (parsed.text || []).join(' ');
|
||||
if (parsed.difficulty?.every((i) => Number.isSafeInteger(+i))) {
|
||||
query.difficulty = { $in: parsed.difficulty.map(Number) };
|
||||
query.difficulty = { $in: parsed.difficulty.flatMap((i) => +i === 0 ? [0, undefined] : [+i]) };
|
||||
}
|
||||
if (category.length) query.$and = category.map((tag) => ({ tag }));
|
||||
if (parsed.namespace?.length) {
|
||||
|
||||
Reference in new issue
Block a user