wip: arcaea-offline==0.2.0

This commit is contained in:
283375 2023-09-23 21:59:06 +08:00
parent 97b26510fb
commit 9622175a62
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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()

View File

@ -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()