cancel test
Showing
2 changed files
with
2 additions
and
3 deletions
... | @@ -888,7 +888,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -888,7 +888,7 @@ class Command(BaseCommand, LoggerMixin): |
888 | os.remove(excel_path) | 888 | os.remove(excel_path) |
889 | finally: | 889 | finally: |
890 | # TODO 识别结果存一张表,方便跑报表 | 890 | # TODO 识别结果存一张表,方便跑报表 |
891 | # if doc.document_scheme == consts.DOC_SCHEME_LIST[0]: | 891 | if doc.document_scheme == consts.DOC_SCHEME_LIST[0]: |
892 | try: | 892 | try: |
893 | # 更新OCR累计识别结果表 | 893 | # 更新OCR累计识别结果表 |
894 | result_class = HILOCRResult if business_type == consts.HIL_PREFIX else AFCOCRResult | 894 | result_class = HILOCRResult if business_type == consts.HIL_PREFIX else AFCOCRResult | ... | ... |
... | @@ -443,8 +443,7 @@ class DocView(GenericView, DocHandler): | ... | @@ -443,8 +443,7 @@ class DocView(GenericView, DocHandler): |
443 | 443 | ||
444 | file.close() | 444 | file.close() |
445 | # 1. 上传信息记录 | 445 | # 1. 上传信息记录 |
446 | # application_id = '{0}{1}'.format(consts.FIXED_APPLICATION_ID_PREFIX, metadata_version_id) | 446 | application_id = '{0}{1}'.format(consts.FIXED_APPLICATION_ID_PREFIX, metadata_version_id) |
447 | application_id = 'CH-S200012727' | ||
448 | upload_finish_time = timezone.now() | 447 | upload_finish_time = timezone.now() |
449 | document_scheme = random.choice(consts.DOC_SCHEME_LIST) | 448 | document_scheme = random.choice(consts.DOC_SCHEME_LIST) |
450 | data_source = random.choice(consts.DATA_SOURCE_LIST) | 449 | data_source = random.choice(consts.DATA_SOURCE_LIST) | ... | ... |
-
Please register or sign in to post a comment