diff --git a/app/keyboards/inline.py b/app/keyboards/inline.py index 16c2767f..ee0fc7bb 100644 --- a/app/keyboards/inline.py +++ b/app/keyboards/inline.py @@ -305,8 +305,8 @@ def get_devices_keyboard(current: int, language: str = "ru") -> InlineKeyboardMa texts = get_texts(language) keyboard = [] - for devices in range(1, 6): - price = (devices - 1) * settings.PRICE_PER_DEVICE + for devices in range(settings.DEFAULT_DEVICE_LIMIT, 6): + price = max(0, devices - settings.DEFAULT_DEVICE_LIMIT) * settings.PRICE_PER_DEVICE price_text = f" (+{texts.format_price(price)})" if price > 0 else "" emoji = "✅" if devices == current else "⚪"