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()