fix: material unit 忽略大小写

This commit is contained in:
caoqianming 2024-03-04 10:25:58 +08:00
parent fcc613170e
commit 9cd5bfc8f9
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def daoru_material(path: str):
raise ParseError(f'{i}行物料信息错误: {str(e)}') raise ParseError(f'{i}行物料信息错误: {str(e)}')
try: try:
filters = {'type': type, 'name': name, 'specification': specification, filters = {'type': type, 'name': name, 'specification': specification,
'model': model, 'unit': unit} 'model': model, 'unit__iexact': unit}
if type in [20, 30]: if type in [20, 30]:
filters['process'] = process filters['process'] = process
default = filters default = filters