From 461d6afb0fd5aa7f50196e4ece4697d3199a84e9 Mon Sep 17 00:00:00 2001 From: zkldi Date: Sun, 7 Nov 2021 19:14:23 +0000 Subject: [PATCH] Add noIntelligentOmit as a flag to get around that behaviour --- .../router/api/v1/games/_game/_playtype/charts/router.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/server/router/api/v1/games/_game/_playtype/charts/router.ts b/server/src/server/router/api/v1/games/_game/_playtype/charts/router.ts index 548f37998..69b0b4b0d 100644 --- a/server/src/server/router/api/v1/games/_game/_playtype/charts/router.ts +++ b/server/src/server/router/api/v1/games/_game/_playtype/charts/router.ts @@ -15,6 +15,8 @@ const router: Router = Router({ mergeParams: true }); * returns the 100 most popular charts for this game. * * @param search - The song title to match on. + * @param noIntelligentOmit - If present, will not perform intelligent + * chart omissions from results. * * @name GET /api/v1/games/:game/:playtype/charts */ @@ -55,7 +57,7 @@ router.get("/", async (req, res) => { // // Since most players will have this off, this is not a significant // performance hit. - if (game === "iidx") { + if (game === "iidx" && !req.query.noIntelligentOmit) { if (!req[SYMBOL_TachiAPIAuth].userID) { charts = charts.filter( (e) => (e as ChartDocument<"iidx:SP" | "iidx:DP">).data["2dxtraSet"] === null