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
e80661aa
authored
2020-11-07 02:58:42 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
small int limit
1 parent
4fa33a02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
src/apps/doc/management/commands/ocr_process.py
src/settings/conf/prd.ini
src/settings/conf/sit.ini
src/settings/conf/uat.ini
src/apps/doc/management/commands/ocr_process.py
View file @
e80661a
...
...
@@ -611,7 +611,7 @@ class Command(BaseCommand, LoggerMixin):
except
Exception
as
e
:
doc
.
status
=
DocStatus
.
UPLOAD_FAILED
.
value
doc
.
end_time
=
timezone
.
now
()
doc
.
duration
=
(
doc
.
end_time
-
doc
.
start_time
)
.
seconds
doc
.
duration
=
min
((
doc
.
end_time
-
doc
.
start_time
)
.
seconds
,
32760
)
for
field
,
count
in
count_list
:
if
hasattr
(
doc
,
field
):
setattr
(
doc
,
field
,
count
)
...
...
@@ -623,7 +623,7 @@ class Command(BaseCommand, LoggerMixin):
else
:
doc
.
status
=
DocStatus
.
COMPLETE
.
value
doc
.
end_time
=
timezone
.
now
()
doc
.
duration
=
(
doc
.
end_time
-
doc
.
start_time
)
.
seconds
doc
.
duration
=
min
((
doc
.
end_time
-
doc
.
start_time
)
.
seconds
,
32760
)
for
field
,
count
in
count_list
:
if
hasattr
(
doc
,
field
):
setattr
(
doc
,
field
,
count
)
...
...
src/settings/conf/prd.ini
View file @
e80661a
[settings]
DEBUG
=
False
SLEEP_SECOND_DOC_GET
=
2
SLEEP_SECOND_IMG_PUT
=
1
SLEEP_SECOND_IMG_PUT
=
2
SLEEP_SECOND_IMG_GET
=
0.5
SLEEP_SECOND_TASK_GET
=
1
SLEEP_SECOND_TASK_GET
=
2
IMG_QUEUE_SIZE
=
500
EDMS_DOWNLOAD_URL
=
https://edms-test.bmw.com/FH/FileHold/DocumentRepository/DownloadHandler.ashx
...
...
src/settings/conf/sit.ini
View file @
e80661a
[settings]
DEBUG
=
True
SLEEP_SECOND_DOC_GET
=
10
SLEEP_SECOND_IMG_PUT
=
1
SLEEP_SECOND_IMG_PUT
=
2
SLEEP_SECOND_IMG_GET
=
0.5
SLEEP_SECOND_TASK_GET
=
2
IMG_QUEUE_SIZE
=
500
...
...
src/settings/conf/uat.ini
View file @
e80661a
[settings]
DEBUG
=
False
SLEEP_SECOND_DOC_GET
=
2
SLEEP_SECOND_IMG_PUT
=
1
SLEEP_SECOND_IMG_PUT
=
2
SLEEP_SECOND_IMG_GET
=
0.5
SLEEP_SECOND_TASK_GET
=
1
SLEEP_SECOND_TASK_GET
=
2
IMG_QUEUE_SIZE
=
500
EDMS_DOWNLOAD_URL
=
https://edms-test.bmw.com/FH/FileHold/DocumentRepository/DownloadHandler.ashx
...
...
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