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
0970d38c
authored
2021-09-08 16:16:38 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix ca compare bug
1 parent
a84f1276
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
0970d38
...
...
@@ -650,7 +650,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
if
len
(
field_list
)
>
0
:
field_failed
[
'individualCusInfo'
]
.
append
(
';'
.
join
(
field_list
))
corporate_res
=
comparison_res
.
get
(
'OCR_Input'
,
{})
.
get
(
'corporateCusInfo'
,
{}
)
corporate_res
=
comparison_res
.
get
(
'OCR_Input'
,
{})
.
get
(
'corporateCusInfo'
)
if
corporate_res
is
not
None
:
total_fields
+=
8
if
not
successful_at_this_level
:
...
...
@@ -661,7 +661,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
if
len
(
corporate_field_list
)
>
0
:
field_failed
[
'corporateCusInfo'
]
.
append
(
';'
.
join
(
corporate_field_list
))
used_car_res
=
comparison_res
.
get
(
'OCR_Input'
,
{})
.
get
(
'usedCarInfo'
,
{}
)
used_car_res
=
comparison_res
.
get
(
'OCR_Input'
,
{})
.
get
(
'usedCarInfo'
)
if
used_car_res
is
not
None
:
total_fields
+=
3
if
not
successful_at_this_level
:
...
...
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