From 88f3c239bfc2f37f626cf892ffc9fa7a5ecd2535 Mon Sep 17 00:00:00 2001 From: Fr1ngg Date: Tue, 5 Aug 2025 01:19:16 +0300 Subject: [PATCH] Update admin_handlers.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Убираем вывод триал подписок из админки --- admin_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin_handlers.py b/admin_handlers.py index 28963942..e6d44911 100644 --- a/admin_handlers.py +++ b/admin_handlers.py @@ -62,7 +62,7 @@ async def admin_stats_callback(callback: CallbackQuery, user: User, db: Database text = t('stats_info', user.language, users=db_stats['total_users'], - subscriptions=db_stats['total_subscriptions'], + subscriptions=db_stats['total_subscriptions_non_trial'], # Изменено revenue=db_stats['total_revenue'] ) @@ -393,7 +393,7 @@ async def list_admin_subscriptions(callback: CallbackQuery, user: User, db: Data return try: - subs = await db.get_all_subscriptions(include_inactive=True) + subs = await db.get_all_subscriptions(include_inactive=True, exclude_trial=True) if not subs: await callback.message.edit_text( "❌ Подписки не найдены",