diff --git a/eduu/database/localization.py b/eduu/database/localization.py
index 816b6d6337..04fa1293bb 100644
--- a/eduu/database/localization.py
+++ b/eduu/database/localization.py
@@ -30,7 +30,7 @@ async def set_db_lang(chat_id: int, chat_type: str, lang_code: str):
raise TypeError(f"Unknown chat type '{chat_type}'.")
-async def get_db_lang(chat_id: int, chat_type: str) -> str:
+async def get_db_lang(chat_id: int, chat_type: ChatType) -> str:
if chat_type == ChatType.PRIVATE:
cursor = await conn.execute("SELECT chat_lang FROM users WHERE user_id = ?", (chat_id,))
ul = await cursor.fetchone()
@@ -42,4 +42,5 @@ async def get_db_lang(chat_id: int, chat_type: str) -> str:
ul = await cursor.fetchone()
else:
raise TypeError(f"Unknown chat type '{chat_type}'.")
+
return ul[0] if ul else None
diff --git a/locales/en-GB.json b/locales/en-GB.json
index 703b1b8c78..8988bcc639 100644
--- a/locales/en-GB.json
+++ b/locales/en-GB.json
@@ -196,7 +196,7 @@
"run_err_string": "Error: The language {language} was not found. Supported languages list: {supported_langs}",
"run_inline_send": "Language: {language}",
"run_tio_res_string_err": "Language: {language}
\n\nCode:\n
{code}\n\nResults:\n
{results}
\n\nErrors:\n{errors}
",
- "run_tio_res_string_no_err": "Language: {language}
\n\nCode:\n{code}
\n\nResults:\n{results}
\n\nStats:{stats}
",
+ "run_tio_res_string_no_err": "Language: {language}
\n\nCode:\n{code}\n\nResults:\n
{results}
\n\nStats:{stats}
",
"sed_regex_timeout": "Oops, your regex pattern has run for too long.",
"start_add_to_chat_btn": "➕ Add to a chat",
"start_chat": "🤖 Start a chat",