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
e975baa4
authored
2020-08-14 11:10:54 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix wb rebuild bug
1 parent
13e30ac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
e975baa
...
...
@@ -54,7 +54,7 @@ class BSWorkbook(Workbook):
# TODO 关键字段再次查找
if
header_idx
is
None
:
continue
letter
=
get_column_letter
(
header_idx
)
letter
=
get_column_letter
(
col
)
ws
.
move_range
(
"{0}1:{0}{1}"
.
format
(
letter
,
ws
.
max_row
),
cols
=
header_idx
-
col
)
ws
.
delete_cols
(
self
.
fixed_col_amount
+
1
,
amount
=
ws
.
max_column
)
...
...
@@ -147,8 +147,9 @@ class BSWorkbook(Workbook):
def
build_month_sheet
(
self
,
role
,
month_mapping
,
ms
):
tmp_ws
=
self
.
create_sheet
(
'tmp_ws'
)
for
month
,
parts
in
month_mapping
.
items
(
):
for
month
in
sorted
(
month_mapping
.
keys
()
):
# 3.1.拷贝数据
parts
=
month_mapping
.
get
(
month
)
new_ws
=
self
.
create_sheet
(
'{0}({1})'
.
format
(
month
,
role
))
new_ws
.
append
(
self
.
fixed_headers
)
for
part
in
parts
:
...
...
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