Redmind commited on
Commit
136f30b
·
verified ·
1 Parent(s): 8bd2bf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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 "warehouseId" in api["params"]:
428
- api["params"]["warehouseId"] = warehouse_id
 
 
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):