Compare commits
2 commits
783b26003a
...
e9d8a331dd
| Author | SHA1 | Date | |
|---|---|---|---|
| e9d8a331dd | |||
|
|
2295e73455 |
2 changed files with 5 additions and 2 deletions
|
|
@ -246,7 +246,7 @@ async def create_bet(
|
|||
async def get_my_bets(user: dict = Depends(get_current_user)):
|
||||
"""Активные ставки пользователя."""
|
||||
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}
|
||||
|
||||
|
||||
|
|
@ -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)):
|
||||
"""История ставок за месяц + статистика."""
|
||||
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}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -897,7 +897,10 @@ body::before {
|
|||
|
||||
.furtok-card {
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
flex-shrink: 0;
|
||||
scroll-snap-align: start;
|
||||
scroll-snap-stop: always;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
Loading…
Reference in a new issue