mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-04 18:57:33 +08:00
🚨 pre-commit-ci
修复格式错误
This commit is contained in:
parent
97706e34c5
commit
2540a55303
@ -1,13 +1,13 @@
|
||||
from typing import Dict, Union
|
||||
|
||||
from httpx import AsyncClient
|
||||
from msgspec import convert
|
||||
from httpx import AsyncClient
|
||||
|
||||
from ..utils import _HEADER
|
||||
from .model import (
|
||||
HakushHsrCharacter,
|
||||
HakushHsrCharacterIndex,
|
||||
HakushHsrLightcone,
|
||||
HakushHsrCharacterIndex,
|
||||
HakushHsrLightconeIndex,
|
||||
)
|
||||
|
||||
|
@ -1,35 +1,35 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Optional, Union
|
||||
from typing import Dict, List, Union, Optional
|
||||
|
||||
from httpx import ReadTimeout
|
||||
from msgspec import json as msgjson
|
||||
|
||||
from ..utils.error_reply import UID_HINT
|
||||
from ..sruid_utils.api.mihomo import MihomoData
|
||||
from ..sruid_utils.api.mihomo.models import Avatar
|
||||
from ..utils.resource.RESOURCE_PATH import PLAYER_PATH
|
||||
from ..sruid_utils.api.mihomo.requests import get_char_card_info
|
||||
from ..utils.error_reply import UID_HINT
|
||||
from .cal_value import cal_relic_sub_affix, cal_relic_main_affix
|
||||
from ..utils.excel.model import AvatarPromotionConfig, EquipmentPromotionConfig
|
||||
from ..utils.map.SR_MAP_PATH import (
|
||||
AvatarRankSkillUp,
|
||||
EquipmentID2Name,
|
||||
EquipmentID2Rarity,
|
||||
SetId2Name,
|
||||
ItemId2Name,
|
||||
Property2Name,
|
||||
RelicId2SetId,
|
||||
SetId2Name,
|
||||
avatarId2DamageType,
|
||||
avatarId2EnName,
|
||||
EquipmentID2Name,
|
||||
AvatarRankSkillUp,
|
||||
EquipmentID2Rarity,
|
||||
rankId2Name,
|
||||
skillId2Name,
|
||||
avatarId2Name,
|
||||
skillId2Effect,
|
||||
avatarId2EnName,
|
||||
avatarId2Rarity,
|
||||
characterSkillTree,
|
||||
rankId2Name,
|
||||
skillId2AttackType,
|
||||
skillId2Effect,
|
||||
skillId2Name,
|
||||
avatarId2DamageType,
|
||||
)
|
||||
from ..utils.resource.RESOURCE_PATH import PLAYER_PATH
|
||||
from .cal_value import cal_relic_main_affix, cal_relic_sub_affix
|
||||
|
||||
|
||||
async def api_to_dict(
|
||||
|
@ -1,10 +1,10 @@
|
||||
from gsuid_core.bot import Bot
|
||||
from gsuid_core.logger import logger
|
||||
from gsuid_core.models import Event
|
||||
from gsuid_core.sv import SV
|
||||
from gsuid_core.bot import Bot
|
||||
from gsuid_core.models import Event
|
||||
from gsuid_core.logger import logger
|
||||
|
||||
from ..utils.resource.download_from_cos import check_use
|
||||
from ..utils.sr_prefix import PREFIX
|
||||
from ..utils.resource.download_from_cos import check_use
|
||||
|
||||
sv_sr_download_config = SV('sr下载资源', pm=1)
|
||||
|
||||
|
@ -1,23 +1,23 @@
|
||||
import re
|
||||
|
||||
from gsuid_core.sv import SV
|
||||
from gsuid_core.bot import Bot
|
||||
from gsuid_core.models import Event
|
||||
from gsuid_core.sv import SV
|
||||
from gsuid_core.utils.image.convert import convert_img
|
||||
|
||||
from ..utils.map.name_covert import (
|
||||
alias_to_char_name,
|
||||
name_to_avatar_id,
|
||||
name_to_relic_set_id,
|
||||
name_to_weapon_id,
|
||||
alias_to_char_name,
|
||||
name_to_relic_set_id,
|
||||
)
|
||||
from ..utils.resource.RESOURCE_PATH import (
|
||||
GUIDE_CHARACTER_PATH,
|
||||
GUIDE_LIGHT_CONE_PATH,
|
||||
WIKI_LIGHT_CONE_PATH,
|
||||
WIKI_MATERIAL_FOR_ROLE,
|
||||
WIKI_RELIC_PATH,
|
||||
WIKI_ROLE_PATH,
|
||||
WIKI_RELIC_PATH,
|
||||
GUIDE_CHARACTER_PATH,
|
||||
WIKI_LIGHT_CONE_PATH,
|
||||
GUIDE_LIGHT_CONE_PATH,
|
||||
WIKI_MATERIAL_FOR_ROLE,
|
||||
)
|
||||
|
||||
sv_sr_wiki = SV('星铁WIKI')
|
||||
|
@ -1,7 +1,7 @@
|
||||
from .SR_MAP_PATH import (
|
||||
EquipmentID2EnName,
|
||||
EquipmentID2Name,
|
||||
SetId2Name,
|
||||
EquipmentID2Name,
|
||||
EquipmentID2EnName,
|
||||
alias_data,
|
||||
avatarId2Name,
|
||||
avatarId2Rarity,
|
||||
|
@ -2,33 +2,33 @@ import asyncio
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Tuple, Union
|
||||
|
||||
from aiohttp import ClientTimeout, TCPConnector
|
||||
from aiohttp.client import ClientSession
|
||||
from bs4 import BeautifulSoup
|
||||
from gsuid_core.logger import logger
|
||||
from gsuid_core.utils.download_resource.download_core import check_url
|
||||
from gsuid_core.utils.download_resource.download_file import download
|
||||
from msgspec import json as msgjson
|
||||
from gsuid_core.logger import logger
|
||||
from aiohttp.client import ClientSession
|
||||
from aiohttp import TCPConnector, ClientTimeout
|
||||
from gsuid_core.utils.download_resource.download_file import download
|
||||
from gsuid_core.utils.download_resource.download_core import check_url
|
||||
|
||||
from .download_url import download_file
|
||||
from .RESOURCE_PATH import (
|
||||
CHAR_ICON_PATH,
|
||||
CHAR_PORTRAIT_PATH,
|
||||
CHAR_PREVIEW_PATH,
|
||||
CONSUMABLE_PATH,
|
||||
ELEMENT_PATH,
|
||||
GUIDE_CHARACTER_PATH,
|
||||
GUIDE_LIGHT_CONE_PATH,
|
||||
WIKI_PATH,
|
||||
GUIDE_PATH,
|
||||
RELIC_PATH,
|
||||
RESOURCE_PATH,
|
||||
SKILL_PATH,
|
||||
WEAPON_PATH,
|
||||
WIKI_LIGHT_CONE_PATH,
|
||||
WIKI_MATERIAL_FOR_ROLE,
|
||||
WIKI_PATH,
|
||||
WIKI_RELIC_PATH,
|
||||
ELEMENT_PATH,
|
||||
RESOURCE_PATH,
|
||||
CHAR_ICON_PATH,
|
||||
WIKI_ROLE_PATH,
|
||||
CONSUMABLE_PATH,
|
||||
WIKI_RELIC_PATH,
|
||||
CHAR_PREVIEW_PATH,
|
||||
CHAR_PORTRAIT_PATH,
|
||||
GUIDE_CHARACTER_PATH,
|
||||
WIKI_LIGHT_CONE_PATH,
|
||||
GUIDE_LIGHT_CONE_PATH,
|
||||
WIKI_MATERIAL_FOR_ROLE,
|
||||
)
|
||||
|
||||
with Path.open(
|
||||
|
Loading…
x
Reference in New Issue
Block a user