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
918035ec
authored
2020-08-19 10:16:37 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
wb rebuild off
1 parent
9ef3c37d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
src/apps/doc/management/commands/doc_ocr_process.py
src/apps/doc/views.py
src/apps/doc/management/commands/doc_ocr_process.py
View file @
918035e
...
...
@@ -168,8 +168,8 @@ class Command(BaseCommand, LoggerMixin):
# loop.close()
# 整合excel文件
wb
.
save
(
src_excel_path
)
wb
.
rebuild
(
role_summary
)
#
wb.save(src_excel_path)
#
wb.rebuild(role_summary)
wb
.
save
(
excel_path
)
except
Exception
as
e
:
doc
.
status
=
DocStatus
.
PROCESS_FAILED
.
value
...
...
src/apps/doc/views.py
View file @
918035e
...
...
@@ -88,8 +88,10 @@ priority_doc_args = {
class
UploadDocView
(
GenericView
,
DocHandler
):
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
permission_classes
=
[]
authentication_classes
=
[]
# permission_classes = [IsAuthenticated]
# authentication_classes = [OAuth2AuthenticationWithUser]
# required_scopes = ['write']
# 上传(接收)文件接口
...
...
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