Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4bbaa0030f | ||
|
|
99dd3765d0 | ||
|
|
929420a284 |
@@ -101,7 +101,7 @@ async def get_next_bubble_level(request: Request):
|
||||
pool = await get_pool()
|
||||
async with pool.acquire() as conn:
|
||||
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:
|
||||
raise HTTPException(401, "User not registered")
|
||||
@@ -189,6 +189,7 @@ async def get_next_bubble_level(request: Request):
|
||||
"words": result_words,
|
||||
"bubbles": all_parts,
|
||||
"level": current_bubble_level,
|
||||
"difficulty": user["difficulty"] or "medium",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user