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
454bef83
authored
2020-09-29 14:27:46 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix license1 bug
1 parent
7c92f402
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
src/apps/doc/management/commands/doc_ocr_process.py
src/apps/doc/management/commands/doc_ocr_process.py
View file @
454bef8
...
...
@@ -149,12 +149,11 @@ class Command(BaseCommand, LoggerMixin):
license_data
=
ocr_data
.
get
(
'data'
,
[])
if
not
license_data
:
return
_
,
license_key
=
consts
.
CLASSIFY_PID_DICT
.
get
(
classify
)
for
license_dict
in
license_data
:
res_list
=
[]
for
field
,
value
in
license_dict
.
items
():
res_list
.
append
((
field
,
value
))
license_summary
.
setdefault
(
license_ke
y
,
[])
.
append
(
res_list
)
license_summary
.
setdefault
(
classif
y
,
[])
.
append
(
res_list
)
@staticmethod
def
license2_process
(
ocr_res_2
,
license_summary
,
pid
,
classify
):
...
...
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