Skip to content

Commit 40b5f58

Browse files
committed
fix(activation): Исправлен переход к активации из уведомления
Signed-off-by: Roman Chursanov <[email protected]>
1 parent 197f352 commit 40b5f58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tgbot/handlers/user/game/products.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from infrastructure.database.models import Employee
77
from infrastructure.database.repo.STP.requests import MainRequestsRepo
88
from tgbot.filters.role import DutyFilter
9-
from tgbot.keyboards.user.game.main import GameMenu
9+
from tgbot.keyboards.mip.game.main import GameMenu
1010
from tgbot.keyboards.user.game.products import (
1111
DutyPurchaseActionMenu,
1212
DutyPurchaseActivationMenu,
@@ -27,7 +27,7 @@
2727
GameMenu.filter(F.menu == "products_activation")
2828
)
2929
async def duty_products_activation(
30-
callback: CallbackQuery, user: Employee, stp_repo: MainRequestsRepo
30+
callback: CallbackQuery, callback_data: GameMenu, user: Employee, stp_repo: MainRequestsRepo
3131
):
3232
"""
3333
Обработчик меню покупок для активации дежурными
@@ -36,7 +36,7 @@ async def duty_products_activation(
3636
"""
3737

3838
# Достаём номер страницы из callback data, стандартно = 1
39-
page = 1
39+
page = getattr(callback_data, "page", 1)
4040

4141
# Получаем покупки ожидающие активации с manager_role == 3 (Дежурный)
4242
review_purchases = await stp_repo.purchase.get_review_purchases_for_activation(

0 commit comments

Comments
 (0)