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