mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-28 02:06:39 +00:00
123
This commit is contained in:
parent
f39856b2fb
commit
39a027e61f
@ -305,7 +305,7 @@ async def get_data(
|
|||||||
char_data["equipmentInfo"] = equipment_info
|
char_data["equipmentInfo"] = equipment_info
|
||||||
|
|
||||||
if save_path:
|
if save_path:
|
||||||
path = save_path / str(uid)
|
path = save_path / uid
|
||||||
path.mkdir(parents=True, exist_ok=True)
|
path.mkdir(parents=True, exist_ok=True)
|
||||||
with Path.open(path / f"{avatarName}.json", "w", encoding="UTF-8") as file:
|
with Path.open(path / f"{avatarName}.json", "w", encoding="UTF-8") as file:
|
||||||
json.dump(char_data, file, ensure_ascii=False)
|
json.dump(char_data, file, ensure_ascii=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user