mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🐛 修复 top 没有 recent games 时 出现 0 长 list 的 bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user