Update runtime.py

This commit is contained in:
SnowyFox 2024-04-18 22:40:18 +08:00 committed by GitHub
parent 2e4013e948
commit 46715e17aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)