diff --git a/handlers/keys/key_management.py b/handlers/keys/key_management.py index afbbaa9f..72cfa08b 100644 --- a/handlers/keys/key_management.py +++ b/handlers/keys/key_management.py @@ -34,8 +34,7 @@ async def process_callback_create_key(callback_query: CallbackQuery, state: FSMC async def select_server(callback_query: CallbackQuery, state: FSMContext, session: Any): - trial_status = await get_trial(callback_query.message.from_user.id, session) - logger.info(f'trial_status {trial_status}') + trial_status = await get_trial(callback_query.from_user.id, session) if trial_status == 1: builder = InlineKeyboardBuilder() builder.row( diff --git a/handlers/notifications.py b/handlers/notifications.py index 5432ecc5..3bbe1bf4 100644 --- a/handlers/notifications.py +++ b/handlers/notifications.py @@ -28,8 +28,8 @@ async def notify_expiring_keys(bot: Bot): logger.info("Начало обработки уведомлений.") - await notify_inactive_trial_users(bot, conn) - await asyncio.sleep(1) + # await notify_inactive_trial_users(bot, conn) + # await asyncio.sleep(1) await notify_10h_keys(bot, conn, current_time, threshold_time_10h) await asyncio.sleep(1) await notify_24h_keys(bot, conn, current_time, threshold_time_24h) diff --git a/handlers/start.py b/handlers/start.py index 8737f2cc..5794983f 100644 --- a/handlers/start.py +++ b/handlers/start.py @@ -33,7 +33,6 @@ async def start_command(message: Message, state: FSMContext, session: Any, admin if not connection_exists: await add_connection(message.from_user.id, session) trial_status = await get_trial(message.from_user.id, session) - logger.info(f'trial_status {trial_status}') image_path = os.path.join("img", "pic.jpg") builder = InlineKeyboardBuilder()