Skip to content

Commit

Permalink
pref: 减少不必要的字典数据修改
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo committed Nov 1, 2023
1 parent cd1bb2e commit 0cea485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/relic.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def save_loadout_for_char(self):
while loadout_name in character_data:
loadout_name = input(_(">>>>命名冲突,请重命名: "))
character_data[loadout_name] = relics_hash
self.loadout_data = modify_json_file(LOADOUT_FILE_NAME, character_name, character_data)
rewrite_json_file(LOADOUT_FILE_NAME, self.loadout_data)
log.info(_("配装录入成功"))

def save_loadout(self, max_retries=3) -> list[str]:
Expand Down

0 comments on commit 0cea485

Please sign in to comment.