Redmind commited on
Commit
48800dc
·
verified ·
1 Parent(s): 522e074

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -373,6 +373,7 @@ def inventory_report(question):
373
  return "warehouse name not found"
374
 
375
  data = make_api_request(apis[0]["url"], apis[0]["params"])
 
376
  if data:
377
  # Extracting the id for the warehouse with the name "WH"
378
  warehouse_id = next((item['id'] for item in data['result'] if item['name'] == warehouse_name), None)
 
373
  return "warehouse name not found"
374
 
375
  data = make_api_request(apis[0]["url"], apis[0]["params"])
376
+ print(data)
377
  if data:
378
  # Extracting the id for the warehouse with the name "WH"
379
  warehouse_id = next((item['id'] for item in data['result'] if item['name'] == warehouse_name), None)