mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-07-01 12:26:26 +00:00
wip: arcaea-offline==0.2.0
This commit is contained in:
@ -26,8 +26,6 @@ class FuzzySearchCompleterModel(QStandardItemModel):
|
||||
item = QStandardItem(kw)
|
||||
item.setData(kw)
|
||||
item.setData(displayText, Qt.ItemDataRole.UserRole + 75)
|
||||
item.setData(
|
||||
f"{chart.song_id}, {chart.package_id}", Qt.ItemDataRole.UserRole + 76
|
||||
)
|
||||
item.setData(f"{chart.song_id}, {chart.set}", Qt.ItemDataRole.UserRole + 76)
|
||||
item.setData(chart, Qt.ItemDataRole.UserRole + 10)
|
||||
self.appendRow(item)
|
||||
|
@ -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.note, score.pure, score.far)
|
||||
scoreRange = calculate_score_range(chart.notes, score.pure, score.far)
|
||||
scoreValidateOk = scoreRange[0] <= score.score <= scoreRange[1]
|
||||
self.setData(index, scoreValidateOk, self.ScoreValidateOkRole)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user