bump to 1.9.6

This commit is contained in:
baiqwerdvd 2024-09-18 16:13:34 +08:00
parent f732f81ee4
commit e0b25986b1
No known key found for this signature in database
GPG Key ID: 7717E46E1797411A
2 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,6 @@
[project] [project]
name = "starrail_damage_cal" name = "starrail_damage_cal"
version = "1.9.5" version = "1.9.6"
description = "For StarRail Role Damage Cal" description = "For StarRail Role Damage Cal"
authors = [ authors = [
{name = "qwerdvd", email = "105906879+qwerdvd@users.noreply.github.com"}, {name = "qwerdvd", email = "105906879+qwerdvd@users.noreply.github.com"},

View File

@ -1,4 +1,3 @@
import json
from pathlib import Path from pathlib import Path
from typing import Dict, List, Tuple, Union from typing import Dict, List, Tuple, Union
@ -375,10 +374,7 @@ async def get_data(
if save_path: if save_path:
path = save_path / str(uid) path = save_path / str(uid)
path.mkdir(parents=True, exist_ok=True) path.mkdir(parents=True, exist_ok=True)
path.mkdir(parents=True, exist_ok=True) with Path.open(path / f"{char_data.avatarName}.json", "wb") as file:
with Path.open(
path / f"{char_data.avatarName}.json", "wb", encoding="UTF-8"
) as file:
_ = file.write(msgjson.encode(char_data)) _ = file.write(msgjson.encode(char_data))
return char_data, char_data.avatarName return char_data, char_data.avatarName