From 7fe6ac2331a48c59e0d5ef22c33127890b6c1122 Mon Sep 17 00:00:00 2001 From: C <0xicl33n@gmail.com> Date: Sun, 4 Jan 2026 13:45:43 -0800 Subject: [PATCH] were going in circles again --- src/asquare.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/asquare.py b/src/asquare.py index 126c0a6..d14a748 100644 --- a/src/asquare.py +++ b/src/asquare.py @@ -309,12 +309,13 @@ async def update_itm(item_id: str, lego_set: dict, item_data: dict = None): if variation_version is not None: variation_obj["version"] = variation_version - # Build item object - DO NOT modify location settings - # Square will preserve existing present_at_all_locations configuration + # Build item object - MUST include present_at_all_locations at object level + # Square's upsert replaces the entire item_data, so we need to be explicit item_obj = { "type": "ITEM", "id": item_id, "version": current_version, + "present_at_all_locations": True, # Default to all locations to avoid conflicts "item_data": { "name": pw_name, "description": f"{set_name} - {set_theme}",