mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-09 17:40:17 +00:00
fix(models): null value checking
This commit is contained in:
parent
a9f8ba6e22
commit
7a64ec4a4a
@ -80,7 +80,12 @@ class ScoreCalculated(ScoresViewBase):
|
||||
(
|
||||
case(
|
||||
(
|
||||
(ChartInfo.notes.isnot(None) & ChartInfo.notes != 0),
|
||||
(
|
||||
ChartInfo.notes.is_not(None)
|
||||
& Score.pure.is_not(None)
|
||||
& Score.far.is_not(None)
|
||||
& (ChartInfo.notes != 0)
|
||||
),
|
||||
Score.score
|
||||
- func.floor(
|
||||
(Score.pure * 10000000.0 / ChartInfo.notes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user