From 46715e17aad6eebdbcfc3f5bdc29adec6ff8a3c2 Mon Sep 17 00:00:00 2001 From: SnowyFox <156929726+MoeSnowyFox@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:40:18 +0800 Subject: [PATCH] Update runtime.py --- liteyuki/liteyuki_main/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteyuki/liteyuki_main/runtime.py b/liteyuki/liteyuki_main/runtime.py index a253a06..e6cc34e 100644 --- a/liteyuki/liteyuki_main/runtime.py +++ b/liteyuki/liteyuki_main/runtime.py @@ -113,7 +113,7 @@ async def get_stats_data(self_id: str = None, lang: str = None) -> dict: if self_id is None: self_id = list(nonebot.get_bots().keys())[0] if len(nonebot.get_bots()) > 0 else "liteyuki" if lang is None: - ulang = get_default_lang_code() + ulang = Language(get_default_lang_code()) else: ulang = Language(lang)