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)