mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
删除.pop
This commit is contained in:
@@ -98,8 +98,6 @@ async def getGameStats(userData: str) -> dict[str, Any]:
|
|||||||
break
|
break
|
||||||
# 如果没有24H统计数据
|
# 如果没有24H统计数据
|
||||||
if gameStats.get('24HLPM') in [None, ''] or gameStats.get('24HAPM') in [None, '']:
|
if gameStats.get('24HLPM') in [None, ''] or gameStats.get('24HAPM') in [None, '']:
|
||||||
gameStats.pop('24HLPM')
|
|
||||||
gameStats.pop('24HAPM')
|
|
||||||
gameStats['24HStats'] = False
|
gameStats['24HStats'] = False
|
||||||
else:
|
else:
|
||||||
gameStats['24HPPS'] = round(float(gameStats['24HLPM']) / 24, 2)
|
gameStats['24HPPS'] = round(float(gameStats['24HLPM']) / 24, 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user