From 95aa5b0419e910b06321d3ed43fad9e550be2e7d Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Tue, 18 Jun 2024 17:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E6=AD=A3=20spp=20?= =?UTF-8?q?=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py b/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py index 2b0e1ce..f6a97c1 100644 --- a/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py +++ b/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py @@ -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,