fix: linter warning PLR2004

This commit is contained in:
2024-08-06 12:32:43 +08:00
parent b8136bf25f
commit 4e799034d7
2 changed files with 3 additions and 2 deletions

View File

@ -44,9 +44,9 @@ class PlayResultCalculators:
if score < 0:
raise ValueError("score cannot be negative")
if score >= 10000000:
if score >= ScoreLowerLimits.PM:
return Decimal(2)
if score >= 9800000:
if score >= ScoreLowerLimits.EX:
return Decimal(1) + (Decimal(score - 9800000) / 200000)
return Decimal(score - 9500000) / 300000