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
e9d30c77
authored
2021-04-16 12:01:08 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix vinno
1 parent
ba0c4726
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
e9d30c7
...
...
@@ -116,6 +116,7 @@ def usedcar_info_compare(info_dict, ocr_res_dict, ocr_field, compare_list, res_s
is_find
=
True
info_dict
[
compare_tuple
[
4
]]
=
compare_res
if
input_str
is
not
None
:
if
idx
!=
0
:
if
ocr_str
is
None
or
ocr_output
is
None
:
del
info_dict
[
compare_tuple
[
0
]]
else
:
...
...
@@ -224,6 +225,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id):
if
mvc_find
is
True
and
dl_find
is
False
:
vino
=
dl_vinos
[
0
]
if
len
(
dl_vinos
)
>
0
else
''
order_usedcar_info
[
consts
.
PCUSD_MVC
[
0
][
0
]]
=
vino
order_usedcar_info
[
consts
.
PCUSD_MVC
[
0
][
4
]]
=
consts
.
RESULT_N
elif
mvc_find
is
False
and
dl_find
is
True
:
vino
=
mvc_vinos
[
0
]
if
len
(
mvc_vinos
)
>
0
else
''
order_usedcar_info
[
consts
.
PCUSD_MVC
[
0
][
0
]]
=
vino
...
...
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