594149a3 by 周伟奇

Merge branch 'feature/e-bank'

2 parents ddd5b3c9 40f5e56c
...@@ -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)
...@@ -151,6 +149,7 @@ class BSWorkbook(Workbook): ...@@ -151,6 +149,7 @@ class BSWorkbook(Workbook):
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():
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!