From d25caa2b963dbc0acfdcfd86154cf6d5cb2f45d3 Mon Sep 17 00:00:00 2001 From: mguschin Date: Tue, 12 May 2026 22:40:52 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20VK=20API=20returns=20prices=20in=20ruble?= =?UTF-8?q?s,=20not=20kopecks=20=E2=80=94=20remove=20/100=20division?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- web/tasks/vk_catalog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/tasks/vk_catalog.py b/web/tasks/vk_catalog.py index 5c7493e..5f70fee 100644 --- a/web/tasks/vk_catalog.py +++ b/web/tasks/vk_catalog.py @@ -105,9 +105,9 @@ def _sync_user(db, user_id: int, token: str, group_id: str) -> None: price_field = p.get("price") if isinstance(price_field, dict): price_raw = price_field.get("amount") - price = float(price_raw) / 100 if price_raw is not None else None + price = float(price_raw) if price_raw is not None else None else: - price = float(price_field) / 100 if price_field is not None else None + price = float(price_field) if price_field is not None else None thumb = None thumb_field = p.get("thumb_photo") if isinstance(thumb_field, dict):