Skip to content

Commit

Permalink
Fix update_charactes_enka function (thesadru#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati authored Apr 3, 2024
1 parent 6b30d30 commit b83eeb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion genshin/utility/extdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ async def update_characters_enka(langs: typing.Sequence[str] = ()) -> None:
continue # traveler element

for short_lang, loc in locs.items():
if (lang := ENKA_LANG_MAP.get(short_lang)) is None:
continue
update_character_name(
lang=ENKA_LANG_MAP[short_lang],
lang=lang,
id=int(strid),
icon_name=char["SideIconName"][len("UI_AvatarIcon_Side_") :], # noqa: E203
name=loc[str(char["NameTextMapHash"])],
Expand Down

0 comments on commit b83eeb6

Please sign in to comment.