fix cat issue
This commit is contained in:
1 parent
97174b2080
commit
7954b0b70d
2 files changed
+14
No files matched your search
@@ -261,9 +261,11 @@ async def update_itm(item_id: str, lego_set: dict, item_data: dict = None):
|
||||
|
||||
# Get current version for version control
|
||||
current_version = fresh_item.get("version")
|
||||
category_id = fresh_item.get("category_id") or LEGO_CAT_ID
|
||||
|
||||
print(f"[@DEBUG] Fresh item version: {current_version}")
|
||||
print(f"[@DEBUG] Fresh variation version: {variation_version}")
|
||||
print(f"[@DEBUG] Category ID: {category_id}")
|
||||
|
||||
# Build upsert body
|
||||
variation_obj = {
|
||||
@@ -294,6 +296,7 @@ async def update_itm(item_id: str, lego_set: dict, item_data: dict = None):
|
||||
"item_data": {
|
||||
"name": pw_name,
|
||||
"description": f"{set_name} - {set_theme}",
|
||||
"category_id": category_id, # Preserve category assignment
|
||||
"variations": [variation_obj],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user