From e10c275cbc921962834c409e7276461589b66e0b Mon Sep 17 00:00:00 2001 From: C <0xicl33n@gmail.com> Date: Sun, 4 Jan 2026 12:23:45 -0800 Subject: [PATCH] VERSION THESE NUTS --- src/asquare.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asquare.py b/src/asquare.py index 5125230..0a19d45 100644 --- a/src/asquare.py +++ b/src/asquare.py @@ -250,12 +250,16 @@ async def update_itm(item_id: str, lego_set: dict, item_data: dict = None): else: variation_id = variations[0]["id"] + # Get current version for version control + current_version = item.get("version") + # Build upsert body upsert_body = { "idempotency_key": str(uuid.uuid4()), "object": { "type": "ITEM", "id": item_id, + "version": current_version, # Include version for conflict prevention "item_data": { "name": pw_name, "description": f"{set_name} - {set_theme}",