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
45d3d99c
authored
2023-04-20 15:18:14 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/CHINARPA-3529' into feature/uat-tmp
2 parents
135b28e3
d373a787
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 @
45d3d99
...
...
@@ -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 @
45d3d99
...
...
@@ -1084,6 +1084,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