diff --git a/LittlePaimon/plugins/Paimon_Wiki/SereniteaPot/api.py b/LittlePaimon/plugins/Paimon_Wiki/SereniteaPot/api.py index 4930bd2..580b3f5 100644 --- a/LittlePaimon/plugins/Paimon_Wiki/SereniteaPot/api.py +++ b/LittlePaimon/plugins/Paimon_Wiki/SereniteaPot/api.py @@ -23,7 +23,7 @@ MATERIAL_API = 'https://api-takumi.mihoyo.com/event/e20200928calculate/v1/furnit async def get_blueprint_data(share_code: int, user_id: Optional[str]) -> Tuple[Union[List[Item], str, int, None], Optional[str]]: cookies: List[Union[PrivateCookie, PublicCookie]] = [] - if user_id and (private_cookies := await PrivateCookie.filter(status=1).all()): + if user_id and (private_cookies := await PrivateCookie.filter(user_id=user_id, status=1).all()): cookies.extend(private_cookies) if public_cookies := await PublicCookie.filter(status__in=[1, 2]).all(): cookies.extend(public_cookies) diff --git a/LittlePaimon/plugins/plugin_manager/draw_help.py b/LittlePaimon/plugins/plugin_manager/draw_help.py index a9787d9..ba915d6 100644 --- a/LittlePaimon/plugins/plugin_manager/draw_help.py +++ b/LittlePaimon/plugins/plugin_manager/draw_help.py @@ -25,7 +25,7 @@ async def draw_plugin_card(plugin: PluginInfo): async def draw_help(plugin_list: List[PluginInfo]): bg = PMImage(await load_image(RESOURCE_BASE_PATH / 'general' / 'bg.png')) - img = PMImage(size=(1080, 10000), color=(255, 255, 255, 0), mode='RGBA') + img = PMImage(size=(1080, 500 * len(plugin_list)), color=(255, 255, 255, 0), mode='RGBA') orange_line = await load_image(RESOURCE_BASE_PATH / 'general' / 'orange.png') orange_name_bg = await load_image(RESOURCE_BASE_PATH / 'general' / 'orange_card.png') black_line = await load_image(RESOURCE_BASE_PATH / 'general' / 'black2.png')