Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -377,6 +377,7 @@ def inventory_report(question):
|
|
377 |
warehouse_id = next((item['id'] for item in data['result'] if item['name'] == warehouse_name), None)
|
378 |
#print(warehouse_id)
|
379 |
if warehouse_id is None:
|
|
|
380 |
return "Please provide a warehouse name available in the database."
|
381 |
# print(f"The id for the warehouse named {name} is: {warehouse_id}")
|
382 |
# Step 3: Update the placeholder with the actual warehouse_id
|
|
|
377 |
warehouse_id = next((item['id'] for item in data['result'] if item['name'] == warehouse_name), None)
|
378 |
#print(warehouse_id)
|
379 |
if warehouse_id is None:
|
380 |
+
print("DB error thrown")
|
381 |
return "Please provide a warehouse name available in the database."
|
382 |
# print(f"The id for the warehouse named {name} is: {warehouse_id}")
|
383 |
# Step 3: Update the placeholder with the actual warehouse_id
|