From 61b85abcc7d9cd57a97d1f0549c7b96b9c429316 Mon Sep 17 00:00:00 2001 From: Karako Date: Fri, 7 Oct 2022 14:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20`EnkaNetwor?= =?UTF-8?q?kAPI`=20=E8=A2=AB=E6=B1=A1=E6=9F=93=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/base/assets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/base/assets.py b/core/base/assets.py index b137ea66..aed0af76 100644 --- a/core/base/assets.py +++ b/core/base/assets.py @@ -219,7 +219,7 @@ class _AvatarAssets(_AssetsService): def __init__(self, client: Optional[AsyncClient] = None, enka: Optional[EnkaAssets] = None): super().__init__(client) - self._enka_api = enka or EnkaAssets() + self._enka_api = enka or EnkaAssets(lang='chs') def __call__(self, target: StrOrInt) -> "_AvatarAssets": temp = target @@ -441,7 +441,7 @@ class _NamecardAssets(_AssetsService): def __call__(self, target: int) -> "_NamecardAssets": result = _NamecardAssets(self.client) result.id = target - result.enka = EnkaAssets().namecards(target) + result.enka = EnkaAssets(lang='chs').namecards(target) return result async def _get_from_ambr(self, item: str) -> Path | None: