diff --git a/web/tasks/vk_sync.py b/web/tasks/vk_sync.py index def4558..542b7fc 100644 --- a/web/tasks/vk_sync.py +++ b/web/tasks/vk_sync.py @@ -154,7 +154,11 @@ def _sync_product( multiplier = float(sync_config.price_multiplier) if sync_config and sync_config.price_multiplier else 1.0 price_rubles = _calc_price(product.price) * multiplier measure = (product.measure_name or "").strip() - desc = f"{product.name} (цена за {measure}.)" if measure else product.name + if measure: + qty = int(multiplier) if multiplier == int(multiplier) else multiplier + desc = f"{product.name} (цена за {qty} {measure}.)" + else: + desc = product.name stock = settings.VK_STOCK_AMOUNT if product.allow_to_sell else 0 owner_id = f"-{vk_group_id}" now = _now()