mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 修复好感度排行榜报错
This commit is contained in:
parent
33710f16fe
commit
bc755ea6ec
@ -50,7 +50,7 @@ class SignGroupUser(Model):
|
|||||||
@classmethod
|
@classmethod
|
||||||
async def get_all_impression(
|
async def get_all_impression(
|
||||||
cls, group_id: Union[int, str]
|
cls, group_id: Union[int, str]
|
||||||
) -> Tuple[List[str], List[str], List[float]]:
|
) -> Tuple[List[str], List[float], List[str]]:
|
||||||
"""
|
"""
|
||||||
说明:
|
说明:
|
||||||
获取该群所有用户 id 及对应 好感度
|
获取该群所有用户 id 及对应 好感度
|
||||||
@ -69,7 +69,7 @@ class SignGroupUser(Model):
|
|||||||
user_list.append(value[0])
|
user_list.append(value[0])
|
||||||
group_list.append(value[1])
|
group_list.append(value[1])
|
||||||
impression_list.append(float(value[2]))
|
impression_list.append(float(value[2]))
|
||||||
return user_list, group_list, impression_list
|
return user_list, impression_list, group_list
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def _run_script(cls):
|
async def _run_script(cls):
|
||||||
|
|||||||
@ -9,8 +9,8 @@ from utils.image_utils import BuildMat
|
|||||||
|
|
||||||
async def init_rank(
|
async def init_rank(
|
||||||
title: str,
|
title: str,
|
||||||
all_user_id: List[int],
|
all_user_id: List[str],
|
||||||
all_user_data: List[int],
|
all_user_data: List[Union[int, float]],
|
||||||
group_id: int,
|
group_id: int,
|
||||||
total_count: int = 10,
|
total_count: int = 10,
|
||||||
) -> BuildMat:
|
) -> BuildMat:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user