Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -424,8 +424,10 @@ def inventory_report(question):
|
|
424 |
|
425 |
# Step 3: Update the placeholder with the actual warehouse_id
|
426 |
for api in apis:
|
427 |
-
if "
|
428 |
-
api["params"]
|
|
|
|
|
429 |
|
430 |
data1 = make_api_request(apis[1]["url"], apis[1]["params"])
|
431 |
if (data1):
|
|
|
424 |
|
425 |
# Step 3: Update the placeholder with the actual warehouse_id
|
426 |
for api in apis:
|
427 |
+
if isinstance(api, dict) and "params" in api:
|
428 |
+
if "warehouseId" in api["params"]:
|
429 |
+
api["params"]["warehouseId"] = warehouse_id
|
430 |
+
|
431 |
|
432 |
data1 = make_api_request(apis[1]["url"], apis[1]["params"])
|
433 |
if (data1):
|