7261c7ad by 周伟奇

Merge branch 'master' into feature/pres

2 parents 80ee1790 88286839
...@@ -857,6 +857,30 @@ class Finder: ...@@ -857,6 +857,30 @@ class Finder:
857 total = get_table_info(ocr_results[key_total][0], ocr_results[key_sjrzje][0], ocr_results) 857 total = get_table_info(ocr_results[key_total][0], ocr_results[key_sjrzje][0], ocr_results)
858 lines.append(['总计', '', total]) 858 lines.append(['总计', '', total])
859 859
860 # 所购 BMW悦然焕
861 # 新服务
862
863 # 所购 BMW5年10
864 # 万公里长悦保养套餐
865
866 # 所购 事故维修补偿
867 # 方案
868
869 # 所购 BMW5年10万公里
870 # 长悦保养套餐
871
872 filtered_lines = []
873 for line in lines:
874 if line[0][:2] not in ['所购', '项目', '总计']:
875 continue
876 if 'BMW悦然' in line[0]:
877 line[0] = '所购 BMW悦然焕新服务'
878 if 'BMW5年10' in line[0]:
879 line[0] = '所购 BMW5年10万公里长悦保养套餐'
880 if '事故维修补' in line[0]:
881 line[0] = '所购 事故维修补偿方案'
882 filtered_lines.append(line)
883
860 table_add_product['words'] = lines 884 table_add_product['words'] = lines
861 table_add_product['page'] = add_product_page_num 885 table_add_product['page'] = add_product_page_num
862 table_add_product['position'] = None 886 table_add_product['position'] = None
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!