Skip to content

Commit

Permalink
fix: Fix mihomo lang conversion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Mar 3, 2024
1 parent b87647b commit d0167a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/hoyo/profile/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from discord.utils import get as dget
from enka import Language as EnkaLang
from mihomo import Language as MihomoLang
from mihomo.models import Character as HSRCharacter

from src.bot.translator import LocaleStr
Expand Down Expand Up @@ -232,7 +233,7 @@ async def _draw_hb_hsr_character_card(
return await asyncio.to_thread(
draw_build_card,
character,
MIHOMO_LANG_TO_LOCALE[self.cache_extras[character.id]["lang"]],
MIHOMO_LANG_TO_LOCALE[MihomoLang(self.cache_extras[character.id]["lang"])],
self._card_settings.dark_mode,
art,
self._card_settings.custom_primary_color,
Expand Down

0 comments on commit d0167a8

Please sign in to comment.