From e29f2cb92073eea6a7a7bb9be22ec5869833d9eb Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Wed, 21 Sep 2022 21:57:25 +0800 Subject: [PATCH] Update query_resource.py --- plugins/genshin/query_resource_points/query_resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/genshin/query_resource_points/query_resource.py b/plugins/genshin/query_resource_points/query_resource.py index ccfd1e6c..53c2beaf 100755 --- a/plugins/genshin/query_resource_points/query_resource.py +++ b/plugins/genshin/query_resource_points/query_resource.py @@ -1,6 +1,6 @@ from pathlib import Path from typing import Tuple, Optional, List -from configs.path_config import IMAGE_PATH, TEXT_PATH +from configs.path_config import IMAGE_PATH, TEXT_PATH, TEMP_PATH from utils.message_builder import image from services.log import logger from utils.image_utils import BuildImage @@ -57,7 +57,7 @@ async def query_resource(resource_name: str) -> str: None, map_.generate_resource_icon_in_map ) return ( - f"{image(TEXT_PATH/f'genshin_map_{rand}.png')}" + f"{image(TEMP_PATH / f'genshin_map_{rand}.png')}" f"\n\n※ {resource_name} 一共找到 {count} 个位置点\n※ 数据来源于米游社wiki" )