Skip to content

Commit

Permalink
紧急修复列表头顺序错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry1014 committed Nov 19, 2019
1 parent 051cfc5 commit 63e07e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CrawlingFund.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ def write_to_file(first_crawling):
filename_handle[line_context_and_fund_kind[1]] = f
if line_context_and_fund_kind[1] in index_kind:
header = ','.join(
['基金名称', '基金代码', '基金规模'] + [index_header[i] for i in index_of_header]
['基金名称', '基金代码', '基金规模'] + index_header
+ ['基金经理任职时间', '基金经理任职收益', '基金经理总任职时间']) + '\n'
elif line_context_and_fund_kind[1] in guaranteed_kind:
header = ','.join(
['基金名称', '基金代码', '基金规模'] + [guaranteed_header[i] for i in index_of_header]
['基金名称', '基金代码', '基金规模'] + guaranteed_header
+ ['基金经理任职时间', '基金经理任职收益', '基金经理总任职时间']) + '\n'
else:
header = ','.join(['基金名称', '基金代码', '基金规模'] + capital_preservation_header
Expand Down

0 comments on commit 63e07e8

Please sign in to comment.