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
7d44ed22
authored
2022-02-28 18:25:20 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
7965c565
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/views.py
src/apps/doc/ocr/wb.py
View file @
7d44ed2
...
...
@@ -345,8 +345,8 @@ class BSWorkbook(Workbook):
metadata_rows
.
extend
(
verify_list
)
for
r
in
range
(
verify_start
,
len
(
metadata_rows
)
+
1
):
verify_highlight_row
.
append
(
r
)
metadata_rows
.
append
(
self
.
blank_row
)
metadata_rows
.
append
(
self
.
code_header
)
metadata_rows
.
extend
(
code
)
...
...
src/apps/doc/views.py
View file @
7d44ed2
...
...
@@ -889,7 +889,8 @@ class DocView(GenericView, DocHandler):
create_time__lt
=
create_time_end
+
datetime
.
timedelta
(
days
=
1
))
\
if
create_time_start
is
not
None
and
create_time_end
is
not
None
else
Q
()
query
=
application_id_query
&
status_query
&
data_source_query
&
upload_finish_time_query
&
create_time_query
val_tuple
=
(
'id'
,
'application_id'
,
'upload_finish_time'
,
'create_time'
,
'document_scheme'
,
'data_source'
,
'status'
,
'page_count'
)
val_tuple
=
(
'id'
,
'application_id'
,
'upload_finish_time'
,
'create_time'
,
'document_scheme'
,
'data_source'
,
'status'
,
'duration'
,
'page_count'
)
doc_class
,
prefix
=
self
.
get_doc_class
(
business_type
)
total
=
doc_class
.
objects
.
filter
(
query
)
.
count
()
start_index
=
page_size
*
(
page
-
1
)
...
...
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