wip: arcaea-offline==0.2.0

- fix viewing/database read references of `ScoreInsert`
This commit is contained in:
2023-08-29 21:26:31 +08:00
parent accf547e90
commit a9d2b5f75d
8 changed files with 49 additions and 46 deletions

View File

@ -236,7 +236,7 @@ class OcrQueueModel(QAbstractListModel):
chart = index.data(self.ChartRole)
score = index.data(self.ScoreRole)
if isinstance(chart, Chart) and isinstance(score, Score):
scoreRange = calculate_score_range(chart, score.pure, score.far)
scoreRange = calculate_score_range(chart.note, score.pure, score.far)
scoreValidateOk = scoreRange[0] <= score.score <= scoreRange[1]
self.setData(index, scoreValidateOk, self.ScoreValidateOkRole)
else: