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
c61eec7f
authored
2025-09-02 15:37:08 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:只能重新识别状态为识别失败的文件
1 parent
c084e697
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
c61eec7
...
...
@@ -2098,6 +2098,9 @@ class DocReOcrView(GenericView, DocHandler):
if
doc
.
application_id
.
startswith
(
consts
.
FIXED_APPLICATION_ID_PREFIX
):
self
.
running_log
.
info
(
'[doc re-ocr fail not support CH-S] [application_entity={0}] [doc_id={1}]'
.
format
(
application_entity
,
doc_id
))
return
response
.
error_msg
(
'模拟下单的文件不支持重新识别'
)
if
doc
.
status
!=
DocStatus
.
PROCESS_FAILED
.
value
:
self
.
running_log
.
info
(
'[doc re-ocr fail not support status] [application_entity={0}] [doc_id={1}]'
.
format
(
application_entity
,
doc_id
))
return
response
.
error_msg
(
'不支持的文件状态'
)
# 3. 选择队列进入
is_priority
=
PriorityApplication
.
objects
.
filter
(
application_id
=
doc
.
application_id
,
on_off
=
True
)
.
exists
()
...
...
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