mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-01 01:30:04 +08:00
update 0.0.7.0
This commit is contained in:
+4
-4
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user