From 8c925b2490abc5a06acad53c8c5b98c0db8e4ea0 Mon Sep 17 00:00:00 2001 From: Deviant <112615715+DEViantUA@users.noreply.github.com> Date: Wed, 20 Mar 2024 18:24:22 +0200 Subject: [PATCH] Update client.py Signed-off-by: Deviant <112615715+DEViantUA@users.noreply.github.com> --- starrailcard/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starrailcard/client.py b/starrailcard/client.py index ee51338..24ffc4c 100644 --- a/starrailcard/client.py +++ b/starrailcard/client.py @@ -39,7 +39,7 @@ def __init__(self, lang = "en", character_art = None, character_id = None, seele async def __aenter__(self): cashe.Cache.get_cache(maxsize = self.cashe.get("maxsize", 150), ttl = self.cashe.get("ttl", 300)) - self.session = await http.AioSession.get_session() + self.session = await http.AioSession.creat_session() await git.ImageCache.set_assets_dowload(self.asset_save) @@ -219,4 +219,4 @@ async def creat(self, uid, style = 1, hide_uid = False, force_update = False, st await asyncio.gather(*task_save) - return StarRailCard.StarRail(**response) \ No newline at end of file + return StarRailCard.StarRail(**response)