From c8a6639dc7dd84e341b16ffbf001f37ff6286559 Mon Sep 17 00:00:00 2001 From: 周伟奇 <zhouweiqi@situdata.com> Date: Tue, 8 Dec 2020 14:25:52 +0800 Subject: [PATCH] fix bug --- src/apps/doc/ocr/wb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/doc/ocr/wb.py b/src/apps/doc/ocr/wb.py index ad014eb..c5f8b61 100644 --- a/src/apps/doc/ocr/wb.py +++ b/src/apps/doc/ocr/wb.py @@ -614,7 +614,7 @@ class BSWorkbook(Workbook): price_total_str = license_dict.get('价税合计小写') if rate_str is not None and price_total_str is not None: try: - rate = int(rate_str) + rate = int(rate_str.rstrip('%')) price_total = float(price_total_str) except Exception as e: pass -- libgit2 0.24.0