vfd
This commit is contained in:
1 parent
7fe6ac2331
commit
1352c7bb81
1 file changed
+8
@@ -346,6 +346,14 @@ async def update_itm(item_id: str, lego_set: dict, item_data: dict = None):
|
|||||||
|
|
||||||
if result_json.get("catalog_object"):
|
if result_json.get("catalog_object"):
|
||||||
print(f"[@DEBUG] ✓ Successfully updated item {item_id}")
|
print(f"[@DEBUG] ✓ Successfully updated item {item_id}")
|
||||||
|
|
||||||
|
# DEBUG: Check what Square actually returned
|
||||||
|
returned_item = result_json["catalog_object"]
|
||||||
|
returned_category = returned_item.get("item_data", {}).get(
|
||||||
|
"category_id"
|
||||||
|
)
|
||||||
|
print(f"[@DEBUG] Square returned category_id: {returned_category}")
|
||||||
|
|
||||||
# TODO: Handle image upload separately (Square Images API)
|
# TODO: Handle image upload separately (Square Images API)
|
||||||
# This requires multipart/form-data upload
|
# This requires multipart/form-data upload
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in new issue
Block a user