perf: 修复资产导入账号模版失败问题 导入文件不区分大小写 (#11031)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-07-20 14:57:51 +08:00
committed by GitHub
parent c50330e055
commit 19b91a6c1f
2 changed files with 11 additions and 6 deletions

View File

@@ -59,8 +59,9 @@ class BaseFileParser(BaseParser):
v.label: k,
k: k
})
lowercase_fields_map = {k.lower(): v for k, v in fields_map.items()}
field_names = [
fields_map.get(column_title.strip('*').lower(), '')
lowercase_fields_map.get(column_title.strip('*').lower(), '')
for column_title in column_titles
]
return field_names