mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-27 09:58:53 +00:00
fix
This commit is contained in:
parent
98f34b1cc8
commit
ac39e4331e
@ -21,7 +21,8 @@ async def get_char_card_info(
|
||||
) as client:
|
||||
req = await client.get(f"/sr_info/{uid}")
|
||||
if save_path:
|
||||
save_path.mkdir(parents=True, exist_ok=True)
|
||||
with Path.open(save_path / uid / f"{uid!s}.json", "w") as file:
|
||||
path = save_path / str(uid)
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
with Path.open(path / f"{uid!s}.json", "w") as file:
|
||||
file.write(req.text)
|
||||
return convert(req.json(), type=MihomoData)
|
||||
|
Loading…
Reference in New Issue
Block a user