From f336b725d0ad6057dca67a2771cca3edd020da42 Mon Sep 17 00:00:00 2001 From: scdhh Date: Fri, 29 Jul 2022 04:03:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4.pop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameDataProcessor/TOPDataProcessor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nonebot_plugin_tetris_stats/GameDataProcessor/TOPDataProcessor.py b/nonebot_plugin_tetris_stats/GameDataProcessor/TOPDataProcessor.py index da6b9bf..00464c5 100644 --- a/nonebot_plugin_tetris_stats/GameDataProcessor/TOPDataProcessor.py +++ b/nonebot_plugin_tetris_stats/GameDataProcessor/TOPDataProcessor.py @@ -98,8 +98,6 @@ async def getGameStats(userData: str) -> dict[str, Any]: break # 如果没有24H统计数据 if gameStats.get('24HLPM') in [None, ''] or gameStats.get('24HAPM') in [None, '']: - gameStats.pop('24HLPM') - gameStats.pop('24HAPM') gameStats['24HStats'] = False else: gameStats['24HPPS'] = round(float(gameStats['24HLPM']) / 24, 2)