This commit is contained in:
baiqwerdvd 2024-09-18 16:04:17 +08:00
parent 7835cb9791
commit f732f81ee4
No known key found for this signature in database
GPG Key ID: 7717E46E1797411A
3 changed files with 4 additions and 7 deletions

View File

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

View File

@ -77,10 +77,7 @@ class Character:
# 处理套装属性
set_id_dict = Counter(set_id_list)
# logger.info(set_id_dict.most_common())
for item in set_id_dict.most_common():
set_property = ""
set_id = item[0]
count = item[1]
for set_id, count in set_id_dict.most_common():
set_value = 0
if count >= 2:
status_add = RelicSetSkill[str(set_id)].get("2", None)

View File

@ -377,8 +377,8 @@ async def get_data(
path.mkdir(parents=True, exist_ok=True)
path.mkdir(parents=True, exist_ok=True)
with Path.open(
path / f"{char_data.avatarName}.json", "w", encoding="UTF-8"
path / f"{char_data.avatarName}.json", "wb", encoding="UTF-8"
) as file:
json.dump(char_data, file, ensure_ascii=False)
_ = file.write(msgjson.encode(char_data))
return char_data, char_data.avatarName