59f58c93 by 周伟奇

fix wholesales contract

1 parent 5c08056d
...@@ -302,13 +302,13 @@ class Finder: ...@@ -302,13 +302,13 @@ class Finder:
302 term_end_chn = words 302 term_end_chn = words
303 303
304 lines = self.get_line(self.ocr_results[pno], 'above') 304 lines = self.get_line(self.ocr_results[pno], 'above')
305 searchObj = re.search(r'aboveto([0-9]+)', lines) 305 searchObj = re.search(r'aboveto([0-9]+)', lines.replace('O', '0'))
306 if searchObj: 306 if searchObj:
307 words = searchObj.group(1) 307 words = searchObj.group(1)
308 deposit_eng = f'{words}%' 308 deposit_eng = f'{words}%'
309 309
310 lines = self.get_line(self.ocr_results[pno], '授信额度的') 310 lines = self.get_line(self.ocr_results[pno], '授信额度的')
311 searchObj = re.search(r'授信额度的([0-9]+)', lines) 311 searchObj = re.search(r'授信额度的([0-9]+)', lines.replace('O', '0'))
312 if searchObj: 312 if searchObj:
313 words = searchObj.group(1) 313 words = searchObj.group(1)
314 deposit_chn = f'{words}%' 314 deposit_chn = f'{words}%'
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!