From 3fe5a19c4a528c2747a079ce0fcee995bd689efd Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Thu, 15 Aug 2024 17:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20top=20?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=20recent=20games=20=E6=97=B6=20=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=200=20=E9=95=BF=20list=20=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/games/top/api/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_tetris_stats/games/top/api/player.py b/nonebot_plugin_tetris_stats/games/top/api/player.py index 53ce7b7..5244f4b 100644 --- a/nonebot_plugin_tetris_stats/games/top/api/player.py +++ b/nonebot_plugin_tetris_stats/games/top/api/player.py @@ -68,4 +68,4 @@ class Player: total: list[Data] = [] for _, value in dataframe.iterrows(): total.append(Data(lpm=value['lpm'], apm=value['apm'])) - return UserProfile(user_name=user_name, today=today, total=total) + return UserProfile(user_name=user_name, today=today, total=total or None)