fix: remove weight price multiplier, send Evotor prices as-is to VK

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mguschin
2026-05-12 22:45:22 +03:00
parent d25caa2b96
commit 3ad383d00b
3 changed files with 12 additions and 25 deletions

View File

@@ -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) if price_raw is not None else None
price = float(price_raw) / 100 if price_raw is not None else None
else:
price = float(price_field) if price_field is not None else None
price = float(price_field) / 100 if price_field is not None else None
thumb = None
thumb_field = p.get("thumb_photo")
if isinstance(thumb_field, dict):