Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.13.9 --list_type存在问题,会把英文逗号分割的多个属性名读成一个 #7

Open
zl19965616 opened this issue Nov 18, 2021 · 0 comments

Comments

@zl19965616
Copy link

官网介绍为:
用逗号分割选取的属性,举例--list_type list_a, list_b 将会将 list_a 和 list_b 两列作为 list 格式导入。list_type:list_a, list_blist 格式数据需要以 | 分割,举例: 1|2|3

实际情况,对于这种多个--list_type list_a, list_b 的情况会把 'list_a, list_b'当做需要作为list格式导入的字段;

排查发现args.list_type取值逻辑可能存在问题,修改方案我是修改了format_importer.py的592行代码为:
self.list_type = args.list_type[0].split(',')
成功把['list_a, list_b']分割成了['list_a', 'list_b'],然后需要字段就正常变成了list格式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant