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
d2fa3682
authored
2021-08-06 18:18:50 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
4419c003
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/apps/doc/management/commands/folder_ltgt_process.py
src/apps/doc/management/commands/folder_ltgt_process.py
View file @
d2fa368
...
...
@@ -170,11 +170,13 @@ class Command(BaseCommand, LoggerMixin):
def
res_process
(
self
,
all_res
,
excel_path
,
classify
):
try
:
wb
=
BSWorkbook
(
set
(),
set
(),
set
(),
set
(),
set
())
sheet_name
,
key_field
,
side_field_order
,
field_order
=
self
.
field_map
.
get
(
classify
)
sheet_name
,
key_field
,
side_field_order
,
src_
field_order
=
self
.
field_map
.
get
(
classify
)
ws
=
wb
.
create_sheet
(
sheet_name
)
for
res
in
all_res
:
if
key_field
is
not
None
and
key_field
in
res
:
field_order
=
side_field_order
else
:
field_order
=
src_field_order
for
search_field
,
write_field
in
field_order
:
field_value
=
res
.
get
(
search_field
,
''
)
if
isinstance
(
field_value
,
list
):
...
...
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