From 18b0d0033cadb7e0b7400e51399013faf1cd3c9d Mon Sep 17 00:00:00 2001 From: scdhh Date: Fri, 29 Jul 2022 04:18:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameDataProcessor/TOSDataProcessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_tetris_stats/GameDataProcessor/TOSDataProcessor.py b/nonebot_plugin_tetris_stats/GameDataProcessor/TOSDataProcessor.py index 4ce3be2..49278bb 100644 --- a/nonebot_plugin_tetris_stats/GameDataProcessor/TOSDataProcessor.py +++ b/nonebot_plugin_tetris_stats/GameDataProcessor/TOSDataProcessor.py @@ -7,7 +7,6 @@ from asyncio import gather from re import I from ..Utils.Request import request - from ..Utils.MessageAnalyzer import handleStatsQueryMessage tosStats = on_regex(pattern=r'^tos查|^tostats|^tosstats|^茶服查|^茶服stats', @@ -99,7 +98,8 @@ async def getGameData(userData: dict) -> dict[str, bool | int | float]: gameData['NUM'] = num gameData['LPM'] = round((weightedTotalLpm / weightedTotalTime), 2) gameData['APM'] = round((weightedTotalApm / weightedTotalTime), 2) - gameData['ADPM'] = round((weightedTotalAdpm / weightedTotalTime), 2) + gameData['ADPM'] = round( + (weightedTotalAdpm / weightedTotalTime), 2) gameData['PPS'] = round((gameData['LPM'] / 24), 2) gameData['APL'] = round((gameData['APM'] / gameData['LPM']), 2) gameData['ADPL'] = round((gameData['ADPM'] / gameData['LPM']), 2)