From 60605d0dcadf7e2de3b69b50ce3824e4d9560db1 Mon Sep 17 00:00:00 2001 From: scdhh Date: Tue, 21 Nov 2023 13:58:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20IO=20Z?= =?UTF-8?q?=E6=AE=B5=E4=BD=8D=20=E4=B8=8D=E6=98=BE=E7=A4=BAglicko=E5=92=8C?= =?UTF-8?q?rd=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io_data_processor/processor.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nonebot_plugin_tetris_stats/game_data_processor/io_data_processor/processor.py b/nonebot_plugin_tetris_stats/game_data_processor/io_data_processor/processor.py index e4d5f86..d723859 100644 --- a/nonebot_plugin_tetris_stats/game_data_processor/io_data_processor/processor.py +++ b/nonebot_plugin_tetris_stats/game_data_processor/io_data_processor/processor.py @@ -146,12 +146,13 @@ class Processor(ProcessorMeta): else: if isinstance(league, NeverRatedLeague): ret_message += f'用户 {user_name} 暂未完成定级赛, 最近十场的数据:' - elif league.rank == 'z': - ret_message += f'用户 {user_name} 暂无段位, {round(league.rating,2)} TR' else: - ret_message += ( - f'{league.rank.upper()} 段用户 {user_name} {round(league.rating,2)} TR (#{league.standing})' - ) + if league.rank == 'z': + ret_message += f'用户 {user_name} 暂无段位, {round(league.rating,2)} TR' + else: + ret_message += ( + f'{league.rank.upper()} 段用户 {user_name} {round(league.rating,2)} TR (#{league.standing})' + ) ret_message += f', 段位分 {round(league.glicko,2)}±{round(league.rd,2)}, 最近十场的数据:' lpm = league.pps * 24 ret_message += f"\nL'PM: {round(lpm, 2)} ( {league.pps} pps )"