fix bug
Showing
2 changed files
with
2 additions
and
7 deletions
... | @@ -823,11 +823,12 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -823,11 +823,12 @@ class Command(BaseCommand, LoggerMixin): |
823 | self.cronjob_log.info('{0} [process complete] [task={1}]'.format(self.log_base, task_str)) | 823 | self.cronjob_log.info('{0} [process complete] [task={1}]'.format(self.log_base, task_str)) |
824 | os.remove(excel_path) | 824 | os.remove(excel_path) |
825 | finally: | 825 | finally: |
826 | pass | ||
826 | # TODO 识别结果存一张表,方便跑报表 | 827 | # TODO 识别结果存一张表,方便跑报表 |
827 | # 更新OCR累计识别结果表 | 828 | # 更新OCR累计识别结果表 |
828 | 829 | ||
829 | # 触发比对 | 830 | # 触发比对 |
830 | compare.apply_async((doc.application_id, business_type, None, ocr_res_id), queue='queue_compare') | 831 | # compare.apply_async((doc.application_id, business_type, None, ocr_res_id), queue='queue_compare') |
831 | finally: | 832 | finally: |
832 | try: | 833 | try: |
833 | img_save_path = os.path.join(doc_data_path, 'img') | 834 | img_save_path = os.path.join(doc_data_path, 'img') | ... | ... |
1 | [loggers] | 1 | [loggers] |
2 | ; online --> 线上OCR日志:ocr_process.py | ||
3 | ; folder --> 线下OCR日志:folder_ocr_process.py | ||
4 | ; bs --> 线上流水识别结果日志,用于生成每日申请号-版式报表:bs_statistics.py | ||
5 | ; license --> 线上证件识别结果日志,用于偶尔生成结果报表:license_statistics.py | ||
6 | ; idcard --> 线上身份证识别结果日志,用于生成每日、每月身份证报表:idcard_daily.py、idcard_monthly.py | ||
7 | ; compare --> celery compare日志 | ||
8 | keys=root, running, exception, online, folder, bs, license, idcard, compare, django.db.backends | 2 | keys=root, running, exception, online, folder, bs, license, idcard, compare, django.db.backends |
9 | 3 | ||
10 | [handlers] | 4 | [handlers] | ... | ... |
-
Please register or sign in to post a comment