From 245b621e894a44ae7990b77daf62583d9dac495d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=80=BB=E5=8A=A8=E5=91=98?= <73592731+devourbots@users.noreply.github.com> Date: Thu, 6 May 2021 12:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=91=E8=A8=80=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E6=A6=9CBug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task.py b/task.py index 4d6fac5..dd37303 100644 --- a/task.py +++ b/task.py @@ -71,7 +71,7 @@ def do_task(): # 获取发言用户数 user_amount = len(r.hkeys("{}_user_message_amount".format(group))) # 获取所有用户发言数字典 - user_message_amount = r.hgetall("-1001403536948_user_message_amount") + user_message_amount = r.hgetall("{}_user_message_amount".format(group)) user_message_amount = sorted(user_message_amount.items(), key=lambda kv: (kv[1]), reverse=True) # print("排序后的用户:" + str(user_message_amount)) top_5_user = ""