4398d1df by 周伟奇

fix ca_report

1 parent cd639176
......@@ -751,7 +751,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
time.sleep(5)
# 将比对结果发送GCAP
start_time = time.time()
start_time_int = time.time()
try:
data = gcap.dict_to_xml(comparison_res)
except Exception as e:
......@@ -781,8 +781,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
compare_log.info('{0} [CA] [task success] [entity={1}] [id={2}] [ocr_res_id={3}]'.format(
log_base, application_entity, application_id, ocr_res_id))
finally:
end_time = time.time()
duration_second = int(end_time - start_time)
duration_second = int(time.time() - start_time_int)
try:
InterfaceReport.objects.create(
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!