mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🐛 修正 spp 算法
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user