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
a1c7bfd2
authored
2020-11-09 21:36:12 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
c8aa6329
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
a1c7bfd
...
...
@@ -317,8 +317,9 @@ class BSWorkbook(Workbook):
if
isinstance
(
row_value
[
1
],
str
):
cn_chars
=
re
.
findall
(
consts
.
CN_RE
,
row_value
[
1
])
cn_str
=
''
.
join
(
cn_chars
)
row_value
[
2
]
=
cn_str
+
row_value
[
2
]
row_value
[
1
]
=
re
.
sub
(
consts
.
CN_RE
,
''
,
row_value
[
1
])
if
isinstance
(
row_value
[
2
],
str
):
row_value
[
2
]
=
cn_str
+
row_value
[
2
]
return
row_value
def
build_month_sheet
(
self
,
ms
,
card
,
month_mapping
,
is_reverse
,
statistics_header_info
,
max_column
,
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