fix ca report
Showing
1 changed file
with
2 additions
and
3 deletions
| ... | @@ -751,7 +751,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res | ... | @@ -751,7 +751,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res |
| 751 | time.sleep(5) | 751 | time.sleep(5) |
| 752 | 752 | ||
| 753 | # 将比对结果发送GCAP | 753 | # 将比对结果发送GCAP |
| 754 | start_time = time.time() | 754 | start_time_int = time.time() |
| 755 | try: | 755 | try: |
| 756 | data = gcap.dict_to_xml(comparison_res) | 756 | data = gcap.dict_to_xml(comparison_res) |
| 757 | except Exception as e: | 757 | except Exception as e: |
| ... | @@ -781,8 +781,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res | ... | @@ -781,8 +781,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res |
| 781 | compare_log.info('{0} [CA] [task success] [entity={1}] [id={2}] [ocr_res_id={3}]'.format( | 781 | compare_log.info('{0} [CA] [task success] [entity={1}] [id={2}] [ocr_res_id={3}]'.format( |
| 782 | log_base, application_entity, application_id, ocr_res_id)) | 782 | log_base, application_entity, application_id, ocr_res_id)) |
| 783 | finally: | 783 | finally: |
| 784 | end_time = time.time() | 784 | duration_second = int(time.time() - start_time_int) |
| 785 | duration_second = int(end_time - start_time) | ||
| 786 | try: | 785 | try: |
| 787 | InterfaceReport.objects.create( | 786 | InterfaceReport.objects.create( |
| 788 | source=SystemName.OCR.name, | 787 | source=SystemName.OCR.name, | ... | ... |
-
Please register or sign in to post a comment