Update subscription.py

This commit is contained in:
Egor
2026-01-14 07:38:59 +03:00
committed by GitHub
parent b49031ea72
commit e33e8bcc2d

View File

@@ -881,6 +881,9 @@ async def _build_tariff_response(
"traffic_topup_enabled": tariff.traffic_topup_enabled,
"traffic_topup_packages": tariff.get_traffic_topup_packages() if hasattr(tariff, 'get_traffic_topup_packages') else {},
"max_topup_traffic_gb": tariff.max_topup_traffic_gb,
# Дневной тариф
"is_daily": getattr(tariff, 'is_daily', False),
"daily_price_kopeks": getattr(tariff, 'daily_price_kopeks', 0),
}