Skip plays with less than 10 hits from being analysed

This commit is contained in:
Stedoss 2025-04-06 04:11:30 +01:00
parent 5caa9ca14b
commit 2452e0a2be

View File

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