fix bs
Showing
2 changed files
with
4 additions
and
3 deletions
... | @@ -1732,7 +1732,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals | ... | @@ -1732,7 +1732,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals |
1732 | fp_campaign = cms_info.get('fpCampaign', '') | 1732 | fp_campaign = cms_info.get('fpCampaign', '') |
1733 | fp_group = cms_info.get('fpGroup', '') | 1733 | fp_group = cms_info.get('fpGroup', '') |
1734 | insurance_type = cms_info.get('insuranceDetails', {}).get('insuranceType', '') | 1734 | insurance_type = cms_info.get('insuranceDetails', {}).get('insuranceType', '') |
1735 | if isinstance(insurance_price, str): | 1735 | if insurance_type == 'Waive Insurance' and isinstance(insurance_price, str): |
1736 | is_insurance = 1 | 1736 | is_insurance = 1 |
1737 | elif insurance_type == 'Comprehensive Insurance': | 1737 | elif insurance_type == 'Comprehensive Insurance': |
1738 | is_insurance = 2 | 1738 | is_insurance = 2 | ... | ... |
... | @@ -125,7 +125,7 @@ class PDFHandler: | ... | @@ -125,7 +125,7 @@ class PDFHandler: |
125 | x1 = x1 * width_scale | 125 | x1 = x1 * width_scale |
126 | y1 = y1 * height_scale | 126 | y1 = y1 * height_scale |
127 | rebuild_text_list.append( | 127 | rebuild_text_list.append( |
128 | ((x0, y0, x1, y0, x1, y1, x0, y1), normalize('NFKC',text)) | 128 | ((x0, y0, x1, y0, x1, y1, x0, y1), normalize('NFKC', text)) |
129 | ) | 129 | ) |
130 | self.page_text_list[pno]['rebuild_text'] = rebuild_text_list | 130 | self.page_text_list[pno]['rebuild_text'] = rebuild_text_list |
131 | except Exception as e: | 131 | except Exception as e: |
... | @@ -295,8 +295,9 @@ class PDFHandler: | ... | @@ -295,8 +295,9 @@ class PDFHandler: |
295 | self.page_to_png(page) | 295 | self.page_to_png(page) |
296 | 296 | ||
297 | def title_is_ebank(self, char): | 297 | def title_is_ebank(self, char): |
298 | new_char = normalize('NFKC', char) | ||
298 | for title in self.ebank_title_list: | 299 | for title in self.ebank_title_list: |
299 | if char.find(title) != -1: | 300 | if new_char.find(title) != -1: |
300 | return True | 301 | return True |
301 | return False | 302 | return False |
302 | 303 | ... | ... |
-
Please register or sign in to post a comment