impr(db): accurate pure_small calculation

- I should commit this 4 days ago, but I forgot it in stash, my bad :(
This commit is contained in:
283375 2023-06-06 19:59:25 +08:00
parent 3896efd8de
commit 33287b2e3a

View File

@ -146,7 +146,7 @@ class Database(metaclass=Singleton):
scores.time, scores.time,
charts.rating, charts.rating,
charts.note, charts.note,
CAST ( ROUND( score - ( pure * 10000000 / note ) - ( far * 0.5 * 10000000 / note ) ) AS INTEGER ) AS pure_small, score - FLOOR(( pure * 10000000.0 / note ) + ( far * 0.5 * 10000000.0 / note )) AS pure_small,
CASE CASE
WHEN score >= 10000000 THEN WHEN score >= 10000000 THEN
rating / 10.0 + 2 rating / 10.0 + 2