Skip to content

Commit

Permalink
Modify the update_characters_any function to use Enka first
Browse files Browse the repository at this point in the history
  • Loading branch information
KT-Yeh committed Sep 16, 2024
1 parent fb614b5 commit 820bb06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions genshin/utility/extdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
ENKA_LANG_MAP = {
"zh-CN": "zh-cn",
"zh-TW": "zh-tw",
"zh-tw": "zh-tw",
"de": "de-de",
"en": "en-us",
"es": "es-es",
Expand Down Expand Up @@ -229,10 +230,7 @@ async def update_characters_any(
if len(langs) == 0:
return

if len(langs) == 1:
updators = [update_characters_ambr, update_characters_enka]
else:
updators = [update_characters_enka, update_characters_ambr]
updators = [update_characters_enka, update_characters_ambr]

updators.append(update_characters_genshindata)

Expand Down

0 comments on commit 820bb06

Please sign in to comment.