diff --git a/.qwen/settings.json b/.qwen/settings.json new file mode 100644 index 0000000..10d6b5c --- /dev/null +++ b/.qwen/settings.json @@ -0,0 +1,8 @@ +{ + "permissions": { + "allow": [ + "Bash(git add *)", + "Bash(git commit *)" + ] + } +} \ No newline at end of file diff --git a/inventory-backend/app/api/v1/bom.py b/inventory-backend/app/api/v1/bom.py index 69828e7..b78b64d 100644 --- a/inventory-backend/app/api/v1/bom.py +++ b/inventory-backend/app/api/v1/bom.py @@ -328,7 +328,7 @@ def get_material_base_list(): query = query.filter( or_( MaterialBase.name.ilike(f"%{keyword}%"), - MaterialBase.spec.ilike(f"%{keyword}%") + MaterialBase.spec_model.ilike(f"%{keyword}%") ) )