fix: score validate not working

This commit is contained in:
283375 2023-09-27 18:44:19 +08:00
parent a188d6987d
commit 2d4cc61f94
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk

View File

@ -266,9 +266,9 @@ class OcrQueueModel(QAbstractListModel):
if (
isinstance(chart, Chart)
and isinstance(score, Score)
and chart.notes
and score.pure
and score.far
and chart.notes is not None
and score.pure is not None
and score.far is not None
):
scoreRange = calculate_score_range(chart.notes, score.pure, score.far)
scoreValidateOk = scoreRange[0] <= score.score <= scoreRange[1]