mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-04-20 17:50:17 +00:00
wip: arcaea-offline==0.2.0
This commit is contained in:
parent
4b79428857
commit
605a69834b
@ -1,4 +1,4 @@
|
||||
from arcaea_offline.calculate import calculate_potential
|
||||
from arcaea_offline.calculate import calculate_play_rating
|
||||
from arcaea_offline.models import Chart, Score
|
||||
from PySide6.QtCore import QCoreApplication, QModelIndex, QSortFilterProxyModel, Qt
|
||||
|
||||
@ -35,7 +35,7 @@ class DbScoreTableModel(DbTableModel):
|
||||
newPtts = []
|
||||
for chart, score in zip(newCharts, newScores):
|
||||
if isinstance(chart, Chart) and isinstance(score, Score):
|
||||
newPtts.append(calculate_potential(chart.constant / 10, score.score))
|
||||
newPtts.append(calculate_play_rating(chart.constant / 10, score.score))
|
||||
else:
|
||||
newPtts.append(None)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user