Fixed an edge case where a score with all +-0ms errors will return null skewness

This commit is contained in:
nise.moe 2024-03-05 11:43:48 +01:00
parent 0d17c1f0b8
commit fc9d973fde
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ class FixOldScores(
return return
} }
if (processedReplay?.error_skewness == null || processedReplay.judgements.isEmpty()) { if (processedReplay == null || processedReplay.judgements.isEmpty()) {
this.logger.error("Circleguard returned null and failed to process replay with score_id: ${score.id}") this.logger.error("Circleguard returned null and failed to process replay with score_id: ${score.id}")
return return
} }

View File

@ -647,7 +647,7 @@ class ImportScores(
return return
} }
if (processedReplay?.error_skewness == null || processedReplay.judgements.isEmpty()) { if (processedReplay == null || processedReplay.judgements.isEmpty()) {
this.logger.error("Circleguard returned null and failed to process replay with score_id: ${score.id}") this.logger.error("Circleguard returned null and failed to process replay with score_id: ${score.id}")
return return
} }