Redmind commited on
Commit
426139e
·
verified ·
1 Parent(s): 48800dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -376,7 +376,7 @@ def inventory_report(question):
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)
380
  #print(warehouse_id)
381
  if (warehouse_id):
382
 
 
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['wareHouseId'] == warehouse_name), None)
380
  #print(warehouse_id)
381
  if (warehouse_id):
382