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
a52dd7ca
authored
2022-10-10 11:51:59 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add empty result
1 parent
1e50135a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/apps/doc/mixins.py
src/apps/doc/mixins.py
View file @
a52dd7c
...
...
@@ -4,7 +4,7 @@ import requests
from
.named_enum
import
DocStatus
from
.models
import
HILDoc
,
AFCDoc
,
AFCSEOCRResult
,
AFCOCRResult
,
HILSEOCRResult
,
HILOCRResult
from
.
import
consts
from
prese.compare
import
pre_compare
from
prese.compare
import
pre_compare
,
get_empty_result
class
MPOSHandler
:
...
...
@@ -160,7 +160,7 @@ class PreSEHandler:
ocr_res_dict
=
result_class
.
objects
.
filter
(
application_id
=
application_id
)
.
values
(
*
consts
.
PRE_COMPARE_FIELDS
)
.
first
()
if
ocr_res_dict
is
None
:
return
return
get_empty_result
()
id_res_list
=
[]
for
field_name
in
consts
.
CA_ADD_COMPARE_FIELDS_PRE
:
...
...
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