fix bug
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -132,7 +132,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -132,7 +132,7 @@ class Command(BaseCommand, LoggerMixin): | 
| 132 | def img_ocr_excel(self, wb, img_path, role_summary): | 132 | def img_ocr_excel(self, wb, img_path, role_summary): | 
| 133 | res = self.fetch_ocr_result(img_path) | 133 | res = self.fetch_ocr_result(img_path) | 
| 134 | self.cronjob_log.info('{0} [fetch ocr result success] [img={1}] [res={2}]'.format(self.log_base, img_path, res)) | 134 | self.cronjob_log.info('{0} [fetch ocr result success] [img={1}] [res={2}]'.format(self.log_base, img_path, res)) | 
| 135 | if res.get('code') == 1: | 135 | if res.get('code') == '1': | 
| 136 | sheets_list = res.get('result').get('res') | 136 | sheets_list = res.get('result').get('res') | 
| 137 | img_name = os.path.basename(img_path) | 137 | img_name = os.path.basename(img_path) | 
| 138 | self.append_sheet(wb, sheets_list, img_name, role_summary) | 138 | self.append_sheet(wb, sheets_list, img_name, role_summary) | ... | ... | 
- 
Please register or sign in to post a comment