were going in circles again
This commit is contained in:
1 parent
931341751d
commit
7fe6ac2331
1 file changed
+3
-2
+3
-2
@@ -309,12 +309,13 @@ async def update_itm(item_id: str, lego_set: dict, item_data: dict = None):
|
|||||||
if variation_version is not None:
|
if variation_version is not None:
|
||||||
variation_obj["version"] = variation_version
|
variation_obj["version"] = variation_version
|
||||||
|
|
||||||
# Build item object - DO NOT modify location settings
|
# Build item object - MUST include present_at_all_locations at object level
|
||||||
# Square will preserve existing present_at_all_locations configuration
|
# Square's upsert replaces the entire item_data, so we need to be explicit
|
||||||
item_obj = {
|
item_obj = {
|
||||||
"type": "ITEM",
|
"type": "ITEM",
|
||||||
"id": item_id,
|
"id": item_id,
|
||||||
"version": current_version,
|
"version": current_version,
|
||||||
|
"present_at_all_locations": True, # Default to all locations to avoid conflicts
|
||||||
"item_data": {
|
"item_data": {
|
||||||
"name": pw_name,
|
"name": pw_name,
|
||||||
"description": f"{set_name} - {set_theme}",
|
"description": f"{set_name} - {set_theme}",
|
||||||
|
|||||||
Reference in new issue
Block a user