From 573d64252971916bf970a53238f734bfee056cf9 Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Sat, 5 Apr 2025 02:15:09 +0100 Subject: [PATCH] Exclude high CS replays from `similar-replays` endpoint --- .../src/main/kotlin/com/nisemoe/nise/database/ScoreService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 83acdce..0d151a4 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 @@ -54,7 +54,6 @@ class ScoreService( 3237399, // - dialtone cs10 4383507, // - another diff from the 700 note stream set 1606883, // - tabi no tochu cs7 - 4387323, // pweh cs9.5 ) } @@ -370,6 +369,8 @@ class ScoreService( } // Globally skip maps that are known to have false positives (eg. high CS) .and(SCORES_SIMILARITY.BEATMAP_ID.notIn(*SKIPPED_SIMILARITY_MAPS)) + // Skip maps that have high CS values (smaller circles mean the replays will be naturally similar) + .and(BEATMAPS.CS.lt(8.0)) .and(condition) .orderBy(osuScoreAlias2.DATE.desc(), SCORES_SIMILARITY.SIMILARITY.asc()) .fetch()