From 2daabad6ed4ed9cf889485e7bf73ba340edbba50 Mon Sep 17 00:00:00 2001 From: Chenric <91937041+ChenXu233@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:11:08 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20:bug:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=96=87=E4=BB=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_dialectlist/utils.py | 7 ++++++- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_dialectlist/utils.py b/nonebot_plugin_dialectlist/utils.py index af9775d..070f110 100644 --- a/nonebot_plugin_dialectlist/utils.py +++ b/nonebot_plugin_dialectlist/utils.py @@ -148,4 +148,9 @@ async def get_rank_image(rank: List[UserRankInfo]) -> bytes: path_dir, filename = os.path.split(path) logger.debug(os.path.dirname(os.path.abspath(__file__)) + plugin_config.template_path[1:]) - return await template_to_pic(path_dir,filename,{'users': rank, 'cache_path': cache_path, 'file_path': os.path.dirname(os.path.abspath(__file__))}) \ No newline at end of file + return await template_to_pic(path_dir, + filename, + {'users': rank, + 'cache_path': cache_path, + 'file_path': os.path.dirname(os.path.abspath(__file__))}, + pages={"viewport": {"width": 1366, "height": 10}}) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index d84843c..9124373 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot_plugin_dialectlist" -version = "2.1.5" +version = "2.1.6" description = "看看你群群友有多能说" authors = [ {name = "Chen_Xu233", email = "woyerpa@outlook.com"},