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
299cd7cc
authored
2021-08-10 11:22:17 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
modify se failure reason
1 parent
c1f24adf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
299cd7c
...
...
@@ -779,6 +779,7 @@ def se_compare_process(compare_info, ocr_res_dict):
'errorType'
:
''
,
}
)
if
len
(
failure_field
)
>
0
:
failure_reason
.
setdefault
(
license_en
,
[])
.
append
(
'/'
.
join
(
failure_field
))
else
:
for
license_en
,
field_list
in
info_value
.
items
():
...
...
@@ -807,11 +808,12 @@ def se_compare_process(compare_info, ocr_res_dict):
'errorType'
:
''
,
}
)
if
len
(
failure_field
)
>
0
:
failure_reason
.
setdefault
(
license_en
,
[])
.
append
(
'/'
.
join
(
failure_field
))
failure_reason_list
=
[]
for
license_en
,
failed_field_list
in
failure_reason
.
items
():
failure_reason_list
.
append
(
'{0}:{1}'
.
format
(
license_en
,
';'
.
join
(
failed_field_list
)))
failure_reason_str
=
'、'
.
join
(
failure_reason_list
)
if
failed_count
==
0
:
failure_reason_str
=
''
else
:
failure_reason_str
=
json
.
dumps
(
failure_reason
)
return
compare_result
,
total_fields
,
failed_count
,
successful_at_this_level
,
failure_reason_str
...
...
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