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
9932e0a0
authored
2024-01-30 14:53:01 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
5218f898
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
src-20240130.zip
src/apps/doc/management/commands/ocr_process.py
src-20240130.zip
0 → 100644
View file @
9932e0a
No preview for this file type
src/apps/doc/management/commands/ocr_process.py
View file @
9932e0a
...
...
@@ -2035,8 +2035,9 @@ class Command(BaseCommand, LoggerMixin):
result_class
=
HILOCRResult
if
is_ca
else
HILSEOCRResult
else
:
result_class
=
AFCOCRResult
if
is_ca
else
AFCSEOCRResult
res_obj
=
result_class
.
objects
.
select_for_update
()
.
filter
(
application_id
=
doc
.
application_id
)
.
first
()
with
transaction
.
atomic
():
res_obj
=
result_class
.
objects
.
select_for_update
()
.
filter
(
application_id
=
doc
.
application_id
)
.
first
()
self
.
online_log
.
info
(
'{0} [sql lock application_id={1}]'
.
format
(
self
.
log_base
,
doc
.
application_id
))
if
res_obj
is
None
:
res_obj
=
result_class
()
...
...
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