File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66from infrastructure .database .models import Employee
77from infrastructure .database .repo .STP .requests import MainRequestsRepo
88from tgbot .filters .role import DutyFilter
9- from tgbot .keyboards .user .game .main import GameMenu
9+ from tgbot .keyboards .mip .game .main import GameMenu
1010from tgbot .keyboards .user .game .products import (
1111 DutyPurchaseActionMenu ,
1212 DutyPurchaseActivationMenu ,
2727 GameMenu .filter (F .menu == "products_activation" )
2828)
2929async 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 (
You can’t perform that action at this time.
0 commit comments