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
6549cd76
authored
2025-09-22 11:15:54 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
FIX bug
1 parent
5b7f2e36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
6549cd7
...
...
@@ -108,11 +108,11 @@ class Command(BaseCommand, LoggerMixin):
if
zip_doc
is
None
:
self
.
online_log
.
warn
(
'{0} [zip_2_pdfs] [doc not exist] [task_str={1}]'
.
format
(
self
.
log_base
,
task_str
))
return
None
,
business_type
return
None
,
business_type
,
None
elif
zip_doc
.
status
!=
DocStatus
.
INIT
.
value
:
self
.
online_log
.
warn
(
'{0} [zip_2_pdfs] [doc status error] [task_str={1}] [doc_status={2}]'
.
format
(
self
.
log_base
,
task_str
,
zip_doc
.
status
))
return
None
,
business_type
return
None
,
business_type
,
None
zip_doc
.
status
=
DocStatus
.
PROCESSING
.
value
zip_doc
.
start_time
=
timezone
.
now
()
...
...
@@ -120,7 +120,7 @@ class Command(BaseCommand, LoggerMixin):
except
Exception
as
e
:
self
.
online_log
.
error
(
'{0} [process error (zip_2_pdfs)] [error={1}]'
.
format
(
self
.
log_base
,
traceback
.
format_exc
()))
return
None
,
None
return
None
,
None
,
None
else
:
self
.
online_log
.
info
(
'{0} [zip_2_pdfs] [db save end] [task_str={1}]'
.
format
(
self
.
log_base
,
task_str
))
...
...
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