mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🐛 修正 TETR.IO records max 数据异常
This commit is contained in:
@@ -85,8 +85,8 @@ async def make_blitz_image(player: Player) -> bytes:
|
||||
kpp=round(endcontext.inputs / endcontext.piecesplaced, 2),
|
||||
kps=round(endcontext.inputs / duration, 2),
|
||||
max=Max(
|
||||
combo=max((0, endcontext.combo - 1)),
|
||||
btb=max((0, endcontext.btb - 1)),
|
||||
combo=max((0, endcontext.topcombo - 1)),
|
||||
btb=max((0, endcontext.topbtb - 1)),
|
||||
),
|
||||
pieces=endcontext.piecesplaced,
|
||||
pps=metrics.pps,
|
||||
|
||||
@@ -87,8 +87,8 @@ async def make_sprint_image(player: Player) -> bytes:
|
||||
kpp=round(endcontext.inputs / endcontext.piecesplaced, 2),
|
||||
kps=round(endcontext.inputs / duration, 2),
|
||||
max=Max(
|
||||
combo=max((0, endcontext.combo - 1)),
|
||||
btb=max((0, endcontext.btb - 1)),
|
||||
combo=max((0, endcontext.topcombo - 1)),
|
||||
btb=max((0, endcontext.topbtb - 1)),
|
||||
),
|
||||
pieces=endcontext.piecesplaced,
|
||||
pps=metrics.pps,
|
||||
|
||||
Reference in New Issue
Block a user