mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-04-18 08:40:18 +00:00
wip: arcaea-offline==0.2.0
This commit is contained in:
parent
97b26510fb
commit
9622175a62
@ -49,7 +49,7 @@ class DbScoreTableModel(DbTableModel):
|
|||||||
and chart.constant is not None
|
and chart.constant is not None
|
||||||
and isinstance(score, Score)
|
and isinstance(score, Score)
|
||||||
):
|
):
|
||||||
newPtts.append(calculate_play_rating(chart.constant / 10, score.score))
|
newPtts.append(calculate_play_rating(chart.constant, score.score))
|
||||||
else:
|
else:
|
||||||
newPtts.append(None)
|
newPtts.append(None)
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ class TabTools_InfoLookup(Ui_TabTools_InfoLookup, QWidget):
|
|||||||
score = int(scoreText)
|
score = int(scoreText)
|
||||||
|
|
||||||
self.playRatingCalculateResultLabel.setText(
|
self.playRatingCalculateResultLabel.setText(
|
||||||
f"{calculate_play_rating(chartInfo.constant / 10, score):.3f}"
|
f"{calculate_play_rating(chartInfo.constant, score):.3f}"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.resetPlayRatingCalculateResultLabel()
|
self.resetPlayRatingCalculateResultLabel()
|
||||||
|
@ -214,7 +214,7 @@ class TabTools_StepCalculator(Ui_TabTools_StepCalculator, QWidget):
|
|||||||
if score := dialog.score():
|
if score := dialog.score():
|
||||||
chart = dialog.chart()
|
chart = dialog.chart()
|
||||||
self.calculate_toStep_playResultSpinBox.setValue(
|
self.calculate_toStep_playResultSpinBox.setValue(
|
||||||
float(calculate_play_rating(chart.constant / 10, score.score))
|
float(calculate_play_rating(chart.constant, score.score))
|
||||||
)
|
)
|
||||||
dialog.close()
|
dialog.close()
|
||||||
dialog.deleteLater()
|
dialog.deleteLater()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user