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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -421,14 +421,14 @@ def inventory_report(question):
421
  warehouse_id = next((item['id'] for item in data['result'] if item['wareHouseId'] == warehouse_name), None)
422
  print(f"warehouse_id:{warehouse_id}")
423
  if (warehouse_id):
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):
434
  headers = ["S.No", "Warehouse Code", "Warehouse Name", "Customer Code", "Customer Name", "Item Code", "Item Name",
 
421
  warehouse_id = next((item['id'] for item in data['result'] if item['wareHouseId'] == warehouse_name), None)
422
  print(f"warehouse_id:{warehouse_id}")
423
  if (warehouse_id):
424
+ print("before api id")
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
+ print("after api id")
432
  data1 = make_api_request(apis[1]["url"], apis[1]["params"])
433
  if (data1):
434
  headers = ["S.No", "Warehouse Code", "Warehouse Name", "Customer Code", "Customer Name", "Item Code", "Item Name",