fix bug
Showing
2 changed files
with
4 additions
and
2 deletions
| ... | @@ -897,7 +897,9 @@ LICENSE_CLASSIFY_SET_1 = {IC_CLASSIFY, VAT_CLASSIFY, MVC_CLASSIFY, MVI_CLASSIFY} | ... | @@ -897,7 +897,9 @@ LICENSE_CLASSIFY_SET_1 = {IC_CLASSIFY, VAT_CLASSIFY, MVC_CLASSIFY, MVI_CLASSIFY} |
| 897 | LICENSE_CLASSIFY_SET_2 = {BL_CLASSIFY, UCI_CLASSIFY, EEP_CLASSIFY, DL_CLASSIFY, PP_CLASSIFY, BC_CLASSIFY} | 897 | LICENSE_CLASSIFY_SET_2 = {BL_CLASSIFY, UCI_CLASSIFY, EEP_CLASSIFY, DL_CLASSIFY, PP_CLASSIFY, BC_CLASSIFY} |
| 898 | 898 | ||
| 899 | MS_CLASSIFY = 21 | 899 | MS_CLASSIFY = 21 |
| 900 | MS_ERROR_COL = (5, 6) | ||
| 900 | WECHART_CLASSIFY = 12 | 901 | WECHART_CLASSIFY = 12 |
| 902 | WECHART_ERROR_COL = (1, 2) | ||
| 901 | WECHART_HEADERS_MAPPING = copy.deepcopy(HEADERS_MAPPING) | 903 | WECHART_HEADERS_MAPPING = copy.deepcopy(HEADERS_MAPPING) |
| 902 | WECHART_HEADERS_MAPPING.update( | 904 | WECHART_HEADERS_MAPPING.update( |
| 903 | { | 905 | { | ... | ... |
| ... | @@ -357,9 +357,9 @@ class BSWorkbook(Workbook): | ... | @@ -357,9 +357,9 @@ class BSWorkbook(Workbook): |
| 357 | for row_value in ws.iter_rows(min_row=part[1], max_row=part[2], values_only=True): | 357 | for row_value in ws.iter_rows(min_row=part[1], max_row=part[2], values_only=True): |
| 358 | if any(row_value): | 358 | if any(row_value): |
| 359 | if classify == consts.WECHART_CLASSIFY: | 359 | if classify == consts.WECHART_CLASSIFY: |
| 360 | row_value = self.wechart_func(row_value, 1, 2) | 360 | row_value = self.wechart_func(row_value, *consts.WECHART_ERROR_COL) |
| 361 | elif classify == consts.MS_CLASSIFY: | 361 | elif classify == consts.MS_CLASSIFY: |
| 362 | row_value = self.wechart_func(row_value, 5, 6) | 362 | row_value = self.wechart_func(row_value, *consts.MS_ERROR_COL) |
| 363 | new_ws.append(row_value) | 363 | new_ws.append(row_value) |
| 364 | # 3.2.提取信息、高亮 | 364 | # 3.2.提取信息、高亮 |
| 365 | amount_mapping = {} | 365 | amount_mapping = {} | ... | ... |
-
Please register or sign in to post a comment