Skip plays with less than 10 hits from being analysed
This commit is contained in:
parent
5caa9ca14b
commit
2452e0a2be
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user