Update subscription_service.py

This commit is contained in:
Egor
2025-09-03 04:07:33 +03:00
committed by GitHub
parent e356542df7
commit 2bfaab7d16

View File

@@ -249,7 +249,7 @@ class SubscriptionService:
server_prices.append(0)
logger.warning(f"⚠️ Сервер ID {server_id} недоступен")
devices_price = max(0, devices - 1) * settings.PRICE_PER_DEVICE
devices_price = max(0, devices - settings.DEFAULT_DEVICE_LIMIT) * settings.PRICE_PER_DEVICE
total_price = base_price + traffic_price + total_servers_price + devices_price