0e6d9a2e by 周伟奇

fix bs

1 parent 5f017a8f
......@@ -1732,7 +1732,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
fp_campaign = cms_info.get('fpCampaign', '')
fp_group = cms_info.get('fpGroup', '')
insurance_type = cms_info.get('insuranceDetails', {}).get('insuranceType', '')
if isinstance(insurance_price, str):
if insurance_type == 'Waive Insurance' and isinstance(insurance_price, str):
is_insurance = 1
elif insurance_type == 'Comprehensive Insurance':
is_insurance = 2
......
......@@ -125,7 +125,7 @@ class PDFHandler:
x1 = x1 * width_scale
y1 = y1 * height_scale
rebuild_text_list.append(
((x0, y0, x1, y0, x1, y1, x0, y1), normalize('NFKC',text))
((x0, y0, x1, y0, x1, y1, x0, y1), normalize('NFKC', text))
)
self.page_text_list[pno]['rebuild_text'] = rebuild_text_list
except Exception as e:
......@@ -295,8 +295,9 @@ class PDFHandler:
self.page_to_png(page)
def title_is_ebank(self, char):
new_char = normalize('NFKC', char)
for title in self.ebank_title_list:
if char.find(title) != -1:
if new_char.find(title) != -1:
return True
return False
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!