df148313 by 周伟奇

fix ca report

1 parent 41e2b260
...@@ -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,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!