fix zhifubao
Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -118,8 +118,6 @@ class BSWorkbook(Workbook): | ... | @@ -118,8 +118,6 @@ class BSWorkbook(Workbook): |
118 | find_count = len(header_col_list) | 118 | find_count = len(header_col_list) |
119 | if find_count < 2: | 119 | if find_count < 2: |
120 | find_count = 0 | 120 | find_count = 0 |
121 | # elif classify == consts.NEW_ZHIFUBAO_CLASSIFY and find_count < 3: | ||
122 | # find_count = 0 | ||
123 | else: | 121 | else: |
124 | for idx, header_col in header_col_list: | 122 | for idx, header_col in header_col_list: |
125 | sheet_header_info.setdefault(ws.title, {}).setdefault(header_col, idx) | 123 | sheet_header_info.setdefault(ws.title, {}).setdefault(header_col, idx) |
... | @@ -150,7 +148,8 @@ class BSWorkbook(Workbook): | ... | @@ -150,7 +148,8 @@ class BSWorkbook(Workbook): |
150 | key=lambda x: sheet_header_info[x][consts.FIND_COUNT_KEY]) | 148 | key=lambda x: sheet_header_info[x][consts.FIND_COUNT_KEY]) |
151 | best_sheet_info = sheet_header_info.get(sheet_order_list[0]) | 149 | best_sheet_info = sheet_header_info.get(sheet_order_list[0]) |
152 | max_find_count = best_sheet_info.get(consts.FIND_COUNT_KEY, 0) | 150 | max_find_count = best_sheet_info.get(consts.FIND_COUNT_KEY, 0) |
153 | if max_find_count == 0 or classify == consts.NEW_ZHIFUBAO_CLASSIFY: | 151 | # if max_find_count == 0 or classify == consts.NEW_ZHIFUBAO_CLASSIFY: |
152 | if max_find_count == 0: | ||
154 | if special_nhzs: | 153 | if special_nhzs: |
155 | classify = consts.SPECIAL_NYZS_CLASSIFY | 154 | classify = consts.SPECIAL_NYZS_CLASSIFY |
156 | for key, value in consts.CLASSIFY_MAP.items(): | 155 | for key, value in consts.CLASSIFY_MAP.items(): | ... | ... |
-
Please register or sign in to post a comment