fix a bug

This commit is contained in:
xtaodada 2022-07-26 22:41:18 +08:00
parent bc9f581226
commit 02e0565bee
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -8,7 +8,7 @@ from defs.sources import PLAYER_PATH, avatarId2Name, avatarName2Element, skillId
async def enkaToData(uid: str) -> Optional[str]:
enka_data = await client.get(f'https://enka.shinshin.moe/u/{str(uid)}/__data.json')
enka_data = await client.get(f'https://enka.network/u/{str(uid)}/__data.json')
enka_data = enka_data.json()
if not enka_data:
return None