🐛 修正 spp 算法

This commit is contained in:
2024-06-18 17:22:22 +08:00
parent b7b92cd785
commit 95aa5b0419

View File

@@ -91,7 +91,7 @@ async def make_blitz_image(player: Player) -> bytes:
lpm=metrics.lpm,
holds=endcontext.holds,
score=endcontext.score,
spp=round(endcontext.score / metrics._pps, 2), # noqa: SLF001 获取最高精度
spp=round(endcontext.score / endcontext.piecesplaced, 2),
single=clears.singles,
double=clears.doubles,
triple=clears.triples,