mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-16 04:45:43 +00:00
update
This commit is contained in:
parent
7835cb9791
commit
f732f81ee4
@ -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"},
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user