Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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['
|
| 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 |
|