From 2452e0a2bede44bce920b2573d11518189c2eb1c Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Sun, 6 Apr 2025 04:11:30 +0100 Subject: [PATCH] Skip plays with less than 10 hits from being analysed --- .../main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nise-backend/src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt b/nise-backend/src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt index 0927a6e..3d3e4ad 100644 --- a/nise-backend/src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt +++ b/nise-backend/src/main/kotlin/com/nisemoe/nise/scheduler/ImportScores.kt @@ -801,6 +801,12 @@ class ImportScores( return } + // If the score has a low amount of hits the UR calculation will be inaccurate, skip these plays + if (processedReplay.hit_count == null || processedReplay.hit_count < 10) { + this.logger.warn("Processed play has less than 10 hits, skipping score ${score.id}") + return + } + val compressedReplay = CompressReplay.compressReplay(scoreReplay.content.toByteArray()) val scoreId = dslContext.update(SCORES)