From bb9fc71ed8ae0ccd0bab640dc7776acc894eb5f6 Mon Sep 17 00:00:00 2001 From: mguschin Date: Tue, 12 May 2026 21:34:14 +0300 Subject: [PATCH] fix: use item_id (singular) in market.removeFromAlbum call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VK API v5.199 requires item_id not item_ids for market.removeFromAlbum. The wrong parameter name caused silent failures — products were not actually removed from their old album when moved to a new one. Co-Authored-By: Claude Sonnet 4.6 --- web/tasks/vk_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tasks/vk_sync.py b/web/tasks/vk_sync.py index 327d8fd..02f7383 100644 --- a/web/tasks/vk_sync.py +++ b/web/tasks/vk_sync.py @@ -221,7 +221,7 @@ def _sync_product( old_album_id = str(vk_p.album_id) _vk_post("market.removeFromAlbum", { "owner_id": owner_id, - "item_ids": product.vk_product_id, + "item_id": product.vk_product_id, "album_ids": old_album_id, }, token) resp_album = _vk_post("market.addToAlbum", {