Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -416,9 +416,10 @@ def inventory_report(question):
|
|
416 |
data = make_api_request(apis[0]["url"], apis[0]["params"])
|
417 |
print(data)
|
418 |
if data:
|
|
|
419 |
# Extracting the id for the warehouse with the name "WH"
|
420 |
warehouse_id = next((item['id'] for item in data['result'] if item['wareHouseId'] == warehouse_name), None)
|
421 |
-
|
422 |
if (warehouse_id):
|
423 |
|
424 |
# Step 3: Update the placeholder with the actual warehouse_id
|
|
|
416 |
data = make_api_request(apis[0]["url"], apis[0]["params"])
|
417 |
print(data)
|
418 |
if data:
|
419 |
+
print(f"warehouse name: {warehouse_name}")
|
420 |
# Extracting the id for the warehouse with the name "WH"
|
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
|