From e848c975c830116a7c3427459d4823e75bdd19a2 Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Tue, 25 Mar 2025 17:42:59 +0000 Subject: [PATCH] Skip certain maps that have high false positive rates in comparisons --- .../com/nisemoe/nise/database/ScoreService.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nise-backend/src/main/kotlin/com/nisemoe/nise/database/ScoreService.kt b/nise-backend/src/main/kotlin/com/nisemoe/nise/database/ScoreService.kt index 4f2710e..913217a 100644 --- a/nise-backend/src/main/kotlin/com/nisemoe/nise/database/ScoreService.kt +++ b/nise-backend/src/main/kotlin/com/nisemoe/nise/database/ScoreService.kt @@ -39,6 +39,20 @@ class ScoreService( val osuUserAlias1 = USERS.`as`("osu_user_alias1") val osuUserAlias2 = USERS.`as`("osu_user_alias2") + val SKIPPED_SIMILARITY_MAPS = arrayOf( + 2635266, // - Death is just the beginning cs10 + 2528044, // - Genkaku Catastrophe cs10 + 2528067, // - Genkaku Catastrophe cs8 + 2665747, // - expand cs9 + 3063865, // - Kagayaku Hari no Kobitozoku ~ Little Princess 700 note stream + 4641077, // - granat cs10 + 3616081, // - shop cs10 + 3533781, //- uwa cs10 + 3535358, // - uwa cs8 + 3208341, // - mizuumi cs8 + 4871320, // - youre a winner ninerik incident + ) + } fun getCharts(db: Record): List { @@ -350,6 +364,8 @@ class ScoreService( and(osuScoreAlias2.IS_BANNED.eq(false)) } } + // Globally skip maps that are known to have false positives (eg. high CS) + .and(SCORES_SIMILARITY.BEATMAP_ID.notIn(*SKIPPED_SIMILARITY_MAPS)) .and(condition) .orderBy(osuScoreAlias2.DATE.desc(), SCORES_SIMILARITY.SIMILARITY.asc()) .fetch()