删除.pop

This commit is contained in:
2022-07-29 04:03:04 +08:00
parent 1d4b24a22b
commit f336b725d0

View File

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