From 6937bcbc3d2ad75b9260aebead1457fa622bb68b Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 13 Jan 2026 16:30:52 +0300 Subject: [PATCH] Update pricing.py --- app/handlers/admin/pricing.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/handlers/admin/pricing.py b/app/handlers/admin/pricing.py index ab6a4592..2bc05045 100644 --- a/app/handlers/admin/pricing.py +++ b/app/handlers/admin/pricing.py @@ -610,8 +610,9 @@ def _build_period_options_section(language: str) -> Tuple[str, types.InlineKeybo lang_code = _language_code(language) suffix = "д" if lang_code == "ru" else "d" - available_subscription = set(settings.get_available_subscription_periods()) - available_renewal = set(settings.get_available_renewal_periods()) + # Используем методы без фильтрации по ценам для админки + available_subscription = set(settings.get_configured_subscription_periods()) + available_renewal = set(settings.get_configured_renewal_periods()) subscription_options = (14, 30, 60, 90, 180, 360) renewal_options = (30, 60, 90, 180, 360) @@ -1335,11 +1336,13 @@ async def toggle_period_option( texts = get_texts(db_user.language) if target == "subscription": - current = set(settings.get_available_subscription_periods()) + # Используем метод без фильтрации по ценам для админки + current = set(settings.get_configured_subscription_periods()) options = {14, 30, 60, 90, 180, 360} setting_key = "AVAILABLE_SUBSCRIPTION_PERIODS" elif target == "renewal": - current = set(settings.get_available_renewal_periods()) + # Используем метод без фильтрации по ценам для админки + current = set(settings.get_configured_renewal_periods()) options = {30, 60, 90, 180, 360} setting_key = "AVAILABLE_RENEWAL_PERIODS" else: