🐛 修正 TETR.IO records max 数据异常

This commit is contained in:
2024-06-25 21:49:42 +08:00
parent 7500640330
commit 4b5f0263e4
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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,