0cac300c by 周伟奇

fix bug

1 parent 01314b0c
...@@ -2413,6 +2413,7 @@ def se_compare_license_id(license_en, id_res_list, field_list): ...@@ -2413,6 +2413,7 @@ def se_compare_license_id(license_en, id_res_list, field_list):
2413 if is_find: 2413 if is_find:
2414 break 2414 break
2415 2415
2416 result_field_list.clear()
2416 for idx, (name, value) in enumerate(field_list): 2417 for idx, (name, value) in enumerate(field_list):
2417 # if ocr_field == consts.MVI_OCR_FIELD and name == consts.SE_NEW_ADD_FIELD[9]: 2418 # if ocr_field == consts.MVI_OCR_FIELD and name == consts.SE_NEW_ADD_FIELD[9]:
2418 # ocr_str = getattr(cp, consts.ZW_METHOD)( 2419 # ocr_str = getattr(cp, consts.ZW_METHOD)(
...@@ -2492,6 +2493,7 @@ def se_compare_license_id(license_en, id_res_list, field_list): ...@@ -2492,6 +2493,7 @@ def se_compare_license_id(license_en, id_res_list, field_list):
2492 result_field_list.append((name, value, result, ocr_str, img_path, error_type, compare_logic[name][3])) 2493 result_field_list.append((name, value, result, ocr_str, img_path, error_type, compare_logic[name][3]))
2493 2494
2494 if not is_find: 2495 if not is_find:
2496 result_field_list.clear()
2495 for name, value in field_list: 2497 for name, value in field_list:
2496 if isinstance(value, list): 2498 if isinstance(value, list):
2497 value = json.dumps(value, ensure_ascii=False) 2499 value = json.dumps(value, ensure_ascii=False)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!