fix ca compare bug
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -650,7 +650,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res | ... | @@ -650,7 +650,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res |
650 | if len(field_list) > 0: | 650 | if len(field_list) > 0: |
651 | field_failed['individualCusInfo'].append(';'.join(field_list)) | 651 | field_failed['individualCusInfo'].append(';'.join(field_list)) |
652 | 652 | ||
653 | corporate_res = comparison_res.get('OCR_Input', {}).get('corporateCusInfo', {}) | 653 | corporate_res = comparison_res.get('OCR_Input', {}).get('corporateCusInfo') |
654 | if corporate_res is not None: | 654 | if corporate_res is not None: |
655 | total_fields += 8 | 655 | total_fields += 8 |
656 | if not successful_at_this_level: | 656 | if not successful_at_this_level: |
... | @@ -661,7 +661,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res | ... | @@ -661,7 +661,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res |
661 | if len(corporate_field_list) > 0: | 661 | if len(corporate_field_list) > 0: |
662 | field_failed['corporateCusInfo'].append(';'.join(corporate_field_list)) | 662 | field_failed['corporateCusInfo'].append(';'.join(corporate_field_list)) |
663 | 663 | ||
664 | used_car_res = comparison_res.get('OCR_Input', {}).get('usedCarInfo', {}) | 664 | used_car_res = comparison_res.get('OCR_Input', {}).get('usedCarInfo') |
665 | if used_car_res is not None: | 665 | if used_car_res is not None: |
666 | total_fields += 3 | 666 | total_fields += 3 |
667 | if not successful_at_this_level: | 667 | if not successful_at_this_level: | ... | ... |
-
Please register or sign in to post a comment