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
d373a787
authored
2023-04-20 15:17:47 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:文件列表页增加excel下载功能,识别结果excel取消删除
1 parent
638c78ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/views.py
src/apps/doc/management/commands/ocr_process.py
View file @
d373a78
...
...
@@ -1978,7 +1978,7 @@ class Command(BaseCommand, LoggerMixin):
self
.
log_base
,
task_str
,
traceback
.
format_exc
()))
else
:
self
.
online_log
.
info
(
'{0} [process complete] [task={1}]'
.
format
(
self
.
log_base
,
task_str
))
os
.
remove
(
excel_path
)
#
os.remove(excel_path)
# report新增流水真伪
try
:
...
...
src/apps/doc/views.py
View file @
d373a78
...
...
@@ -1083,6 +1083,8 @@ class DocView(DocGenericView, DocHandler):
application_link
=
'{0}/showList/showList?entity={1}&scheme={2}&case_id={3}'
.
format
(
conf
.
BASE_URL
,
prefix
,
tmp_scheme
,
doc_dict
[
'application_id'
])
doc_dict
[
'target_url'
]
=
application_link
doc_id
=
doc_dict
.
get
(
'id'
)
doc_dict
[
'pdf_link'
]
=
self
.
get_link
(
doc_id
,
business_type
)
# total = len(doc_list)
pagination
=
{
'current'
:
page
,
'total'
:
total
,
'page_size'
:
page_size
}
...
...
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