From 2d4cc61f940eeaf9a1061b10ece783398628b138 Mon Sep 17 00:00:00 2001 From: 283375 Date: Wed, 27 Sep 2023 18:44:19 +0800 Subject: [PATCH] fix: score validate not working --- ui/extends/components/ocrQueue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/extends/components/ocrQueue.py b/ui/extends/components/ocrQueue.py index bf9f92f..2dfbd3f 100644 --- a/ui/extends/components/ocrQueue.py +++ b/ui/extends/components/ocrQueue.py @@ -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]