update 0.0.7.0

This commit is contained in:
HibiKier
2021-12-16 11:16:28 +08:00
parent b892617824
commit 2653f67193
141 changed files with 2693 additions and 547 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
from models.group_member_info import GroupInfoUser
from utils.image_utils import CreateMat
from utils.image_utils import BuildMat
from configs.path_config import IMAGE_PATH
from typing import List, Union
import asyncio
@@ -8,7 +8,7 @@ import os
async def init_rank(
title: str, all_user_id: List[int], all_user_data: List[int], group_id: int, total_count: int = 10
) -> CreateMat:
) -> BuildMat:
"""
说明:
初始化通用的数据排行榜
@@ -43,14 +43,14 @@ async def init_rank(
def _init_rank_graph(
title: str, _uname_lst: List[str], _num_lst: List[Union[int, float]]
) -> CreateMat:
) -> BuildMat:
"""
生成排行榜统计图
:param title: 排行榜标题
:param _uname_lst: 用户名列表
:param _num_lst: 数值列表
"""
image = CreateMat(
image = BuildMat(
y=_num_lst,
y_name="* 可以在命令后添加数字来指定排行人数 至多 50 *",
mat_type="barh",