Spaces:
Build error
Build error
Update app.py
Browse files376 unmodified lines377378379380381382376 unmodified lineswarehouse_id = next((item['id'] for item in data['result'] if item['name'] == warehouse_name), None)#print(warehouse_id)if warehouse_id is None:return "Please provide a warehouse name available in the database."# print(f"The id for the warehouse named {name} is: {warehouse_id}")# Step 3: Update the placeholder with the actual warehouse_id376 unmodified lines377378379380381382383376 unmodified lineswarehouse_id = next((item['id'] for item in data['result'] if item['name'] == warehouse_name), None)#print(warehouse_id)if warehouse_id is None:print("DB error thrown")return "Please provide a warehouse name available in the database."# print(f"The id for the warehouse named {name} is: {warehouse_id}")# Step 3: Update the placeholder with the actual warehouse_id
app.py+1