Merge pull request #439 from HuYo-OS/patch-1

This commit is contained in:
惜月 2023-05-24 20:05:51 +08:00 committed by GitHub
commit f3a80eefa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ def get_weapon_icon(name: str) -> Optional[str]:
def get_artifact_icon(name: str) -> Optional[str]:
icon_list = load_json(JSON_DATA / 'artifact.json')['Icon']
icon_list = load_json(JSON_DATA / 'artifact.json')
for k, v in icon_list['Name'].items():
if name == v:
return k