mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 18:00:57 +00:00
perf: 修复资产导入账号模版失败问题 导入文件不区分大小写 (#11031)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user