Skip to content

Commit

Permalink
🐛 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi authored Aug 8, 2022
1 parent 271d29c commit c8035dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enkaToData/enkaToData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit c8035dd

Please sign in to comment.