Exclude high CS replays from similar-replays endpoint

This commit is contained in:
Stedoss 2025-04-05 02:15:09 +01:00
parent 9e04397ac4
commit 573d642529

View File

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