From 820bb0683fd966e660f3d5fb8049a43102a85177 Mon Sep 17 00:00:00 2001 From: KT Date: Mon, 16 Sep 2024 20:51:05 +0800 Subject: [PATCH] Modify the update_characters_any function to use Enka first --- genshin/utility/extdb.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/genshin/utility/extdb.py b/genshin/utility/extdb.py index b3058cd3..359f7e1a 100644 --- a/genshin/utility/extdb.py +++ b/genshin/utility/extdb.py @@ -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", @@ -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)