mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
Merge pull request #439 from HuYo-OS/patch-1
This commit is contained in:
commit
f3a80eefa9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user