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
d619642f
authored
2025-08-29 14:21:14 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ADD:log
1 parent
e8b1b6bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
d619642
...
...
@@ -2149,7 +2149,9 @@ class BatchReOcrView(GenericView, DocHandler):
docs
=
doc_class
.
objects
.
filter
(
status
=
2
,
create_time__range
=
(
start_of_day
,
end_of_day
))
# 遍历
time_stamp
=
time
.
time
()
for
doc
in
docs
.
iterator
():
self
.
running_log
.
info
(
'[batch doc reocr timestamp={0}] [doc_id={1}]'
.
format
(
time_stamp
,
doc
.
id
))
# 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