Compare commits

...

2 commits

2 changed files with 5 additions and 2 deletions

View file

@ -246,7 +246,7 @@ async def create_bet(
async def get_my_bets(user: dict = Depends(get_current_user)): async def get_my_bets(user: dict = Depends(get_current_user)):
"""Активные ставки пользователя.""" """Активные ставки пользователя."""
user_id = user["user_id"] user_id = user["user_id"]
result = await _get_user_bets_raw(user_id) result = await asyncio.to_thread(_get_user_bets_raw, user_id)
return {"text": result} return {"text": result}
@ -254,7 +254,7 @@ async def get_my_bets(user: dict = Depends(get_current_user)):
async def get_bet_history(user: dict = Depends(get_current_user)): async def get_bet_history(user: dict = Depends(get_current_user)):
"""История ставок за месяц + статистика.""" """История ставок за месяц + статистика."""
user_id = user["user_id"] user_id = user["user_id"]
result = await _get_user_bet_history_raw(user_id) result = await asyncio.to_thread(_get_user_bet_history_raw, user_id)
return {"text": result} return {"text": result}

View file

@ -897,7 +897,10 @@ body::before {
.furtok-card { .furtok-card {
height: 100%; height: 100%;
min-height: 100%;
flex-shrink: 0;
scroll-snap-align: start; scroll-snap-align: start;
scroll-snap-stop: always;
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;