fix a bug

This commit is contained in:
xtaodada 2021-06-20 17:35:29 +08:00
parent 5cf0482b42
commit 24956305c5
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736

View File

@ -140,7 +140,7 @@ def generate(group):
# 默认展示前5位少于5个则全部展示
for i in range(min(5, len(user_message_amount))):
dis_name = str(user_message_amount[i][0])
top_5_user += "\t\t\t\t\t\t\t\t" + "🎖 `" + dis_name[:min(8, len(dis_name))] + "`" + " 贡献:" + str(
top_5_user += "\t\t\t\t\t\t\t\t" + "🎖 `" + dis_name[:min(10, len(dis_name))] + "`" + " 贡献:" + str(
user_message_amount[i][1]) + "\n"
# print(top_5_user)
text += f"🏵 今日活跃用户排行榜:\n\n{top_5_user}"