This commit is contained in:
C committed 2026-01-04 13:53:07 -08:00
1 parent 1352c7bb81
commit fce743d580
1 file changed
+2 -3
+2 -3
View File
@@ -309,13 +309,12 @@ 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 - MUST include present_at_all_locations at object level
# Square's upsert replaces the entire item_data, so we need to be explicit
# Build item object - omit location fields to preserve existing settings
# Square will keep the current location configuration if we don't specify it
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}",