Fix
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user