Skip to content

Commit a14b249

Browse files
fix(database): use ChatType enum instead of str for chat_type parameter
1 parent 80fac73 commit a14b249

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eduu/database/localization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
conn = database.get_conn()
1111

1212

13-
async def set_db_lang(chat_id: int, chat_type: str, lang_code: str):
13+
async def set_db_lang(chat_id: int, chat_type: ChatType, lang_code: str):
1414
if chat_type in {ChatType.PRIVATE, ChatType.BOT}:
1515
await conn.execute(
1616
"UPDATE users SET chat_lang = ? WHERE user_id = ?", (lang_code, chat_id)

0 commit comments

Comments
 (0)