fix bug
Showing
2 changed files
with
5 additions
and
5 deletions
| ... | @@ -444,7 +444,7 @@ class DocView(GenericView, DocHandler): | ... | @@ -444,7 +444,7 @@ class DocView(GenericView, DocHandler): |
| 444 | file.close() | 444 | file.close() |
| 445 | # 1. 上传信息记录 | 445 | # 1. 上传信息记录 |
| 446 | # application_id = '{0}{1}'.format(consts.FIXED_APPLICATION_ID_PREFIX, metadata_version_id) | 446 | # application_id = '{0}{1}'.format(consts.FIXED_APPLICATION_ID_PREFIX, metadata_version_id) |
| 447 | application_id = 'CH-B200012772' | 447 | application_id = 'CH-S200012772' |
| 448 | upload_finish_time = timezone.now() | 448 | upload_finish_time = timezone.now() |
| 449 | document_scheme = random.choice(consts.DOC_SCHEME_LIST) | 449 | document_scheme = random.choice(consts.DOC_SCHEME_LIST) |
| 450 | data_source = random.choice(consts.DATA_SOURCE_LIST) | 450 | data_source = random.choice(consts.DATA_SOURCE_LIST) | ... | ... |
| ... | @@ -75,7 +75,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): | ... | @@ -75,7 +75,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): |
| 75 | sep_is_find = True | 75 | sep_is_find = True |
| 76 | for sep_field, sep_tuple in consts.TCSEP.items(): | 76 | for sep_field, sep_tuple in consts.TCSEP.items(): |
| 77 | sep_res = getattr(cp, sep_tuple[1])( | 77 | sep_res = getattr(cp, sep_tuple[1])( |
| 78 | individual_cus_info.get(sep_field), sep_ocr.get(sep_tuple[0]), sep_tuple[2]) | 78 | individual_cus_info.get(sep_field), sep_ocr.get(sep_tuple[0]), **sep_tuple[2]) |
| 79 | individual_cus_info[sep_field + 'Result'] = sep_res | 79 | individual_cus_info[sep_field + 'Result'] = sep_res |
| 80 | res_set.add(sep_res) | 80 | res_set.add(sep_res) |
| 81 | break | 81 | break |
| ... | @@ -101,7 +101,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): | ... | @@ -101,7 +101,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): |
| 101 | is_find = True | 101 | is_find = True |
| 102 | for compare_field, compare_tuple in compare_target.get('compare_field').items(): | 102 | for compare_field, compare_tuple in compare_target.get('compare_field').items(): |
| 103 | compare_res = getattr(cp, compare_tuple[1])( | 103 | compare_res = getattr(cp, compare_tuple[1])( |
| 104 | individual_cus_info.get(compare_field), ocr_res.get(compare_tuple[0]), compare_tuple[2]) | 104 | individual_cus_info.get(compare_field), ocr_res.get(compare_tuple[0]), **compare_tuple[2]) |
| 105 | individual_cus_info[compare_field + 'Result'] = compare_res | 105 | individual_cus_info[compare_field + 'Result'] = compare_res |
| 106 | res_set.add(compare_res) | 106 | res_set.add(compare_res) |
| 107 | break | 107 | break |
| ... | @@ -127,7 +127,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): | ... | @@ -127,7 +127,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): |
| 127 | is_bl_find = True | 127 | is_bl_find = True |
| 128 | for bl_field, bl_tuple in consts.TCCOR.items(): | 128 | for bl_field, bl_tuple in consts.TCCOR.items(): |
| 129 | bl_res = getattr(cp, bl_tuple[1])( | 129 | bl_res = getattr(cp, bl_tuple[1])( |
| 130 | corporate_cus_info.get(bl_field), bl_ocr.get(bl_tuple[0]), bl_tuple[2]) | 130 | corporate_cus_info.get(bl_field), bl_ocr.get(bl_tuple[0]), **bl_tuple[2]) |
| 131 | corporate_cus_info[bl_field + 'Result'] = bl_res | 131 | corporate_cus_info[bl_field + 'Result'] = bl_res |
| 132 | res_set.add(bl_res) | 132 | res_set.add(bl_res) |
| 133 | break | 133 | break |
| ... | @@ -152,7 +152,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): | ... | @@ -152,7 +152,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): |
| 152 | is_usedcar_find = True | 152 | is_usedcar_find = True |
| 153 | for mvc_field, mvc_tuple in consts.PCUSD_MVC.items(): | 153 | for mvc_field, mvc_tuple in consts.PCUSD_MVC.items(): |
| 154 | mvc_res = getattr(cp, mvc_tuple[1])( | 154 | mvc_res = getattr(cp, mvc_tuple[1])( |
| 155 | usedcar_info.get(mvc_field), mvc_ocr.get(mvc_tuple[0]), mvc_tuple[2]) | 155 | usedcar_info.get(mvc_field), mvc_ocr.get(mvc_tuple[0]), **mvc_tuple[2]) |
| 156 | usedcar_info[mvc_field + 'Result'] = mvc_res | 156 | usedcar_info[mvc_field + 'Result'] = mvc_res |
| 157 | res_set.add(mvc_res) | 157 | res_set.add(mvc_res) |
| 158 | 158 | ... | ... |
-
Please register or sign in to post a comment