🐛 修复好感度排行榜报错

This commit is contained in:
yajiwa 2023-04-25 20:08:58 +08:00 committed by GitHub
parent 33710f16fe
commit bc755ea6ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class SignGroupUser(Model):
@classmethod
async def get_all_impression(
cls, group_id: Union[int, str]
) -> Tuple[List[str], List[str], List[float]]:
) -> Tuple[List[str], List[float], List[str]]:
"""
说明:
获取该群所有用户 id 及对应 好感度
@ -69,7 +69,7 @@ class SignGroupUser(Model):
user_list.append(value[0])
group_list.append(value[1])
impression_list.append(float(value[2]))
return user_list, group_list, impression_list
return user_list, impression_list, group_list
@classmethod
async def _run_script(cls):

View File

@ -9,8 +9,8 @@ from utils.image_utils import BuildMat
async def init_rank(
title: str,
all_user_id: List[int],
all_user_data: List[int],
all_user_id: List[str],
all_user_data: List[Union[int, float]],
group_id: int,
total_count: int = 10,
) -> BuildMat: