Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
df148313
authored
2022-12-12 11:30:56 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix ca report
1 parent
41e2b260
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
df14831
...
...
@@ -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
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment