From c8035ddbd2891cc7e15b79d840698d8f3b9bcb8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Mon, 8 Aug 2022 11:58:20 +0800 Subject: [PATCH] :bug: fix --- enkaToData/enkaToData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enkaToData/enkaToData.py b/enkaToData/enkaToData.py index 6b09bbab..995ece4f 100644 --- a/enkaToData/enkaToData.py +++ b/enkaToData/enkaToData.py @@ -56,7 +56,7 @@ async def enkaToData(uid: str, enka_data: Optional[dict] = None) -> dict: if enka_data: pass else: - enka_data = json.loads(httpx.get(url=f'https://enka.network/u/{str(uid)}/__data.json', headers={'User-Agent': 'GenshinUID/2.0'}).text + enka_data = json.loads(httpx.get(url=f'https://enka.network/u/{str(uid)}/__data.json', headers={'User-Agent': 'GenshinUID/2.0'}).text) if enka_data == {}: return enka_data now = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))