[Eva] ChooseWord /next: читаем difficulty из users

This commit is contained in:
2026-10-15 17:01:35 +00:00
parent c60f9a39c2
commit 07eebf6fed
+1 -1
View File
@@ -14,7 +14,7 @@ async def get_next_quiz(request: Request):
pool = await get_pool() pool = await get_pool()
async with pool.acquire() as conn: async with pool.acquire() as conn:
user = await conn.fetchrow( user = await conn.fetchrow(
"SELECT app_language, current_level FROM users WHERE telegram_id = $1", telegram_id "SELECT app_language, current_level, difficulty FROM users WHERE telegram_id = $1", telegram_id
) )
if not user: if not user:
raise HTTPException(401, "User not registered") raise HTTPException(401, "User not registered")