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
cf502dfa
authored
2020-11-11 22:14:10 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix gcap
1 parent
c25ced3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/apps/doc/consts.py
src/apps/doc/views.py
src/apps/doc/consts.py
View file @
cf502df
...
...
@@ -17,7 +17,7 @@ SPLIT_STR = '_'
BUSINESS_TYPE_LIST
=
[
HIL_PREFIX
,
AFC_PREFIX
]
HIL_SET
=
{
'HIL'
,
'HIl'
,
'HiL'
,
'Hil'
,
'hIL'
,
'hIl'
,
'hiL'
,
'hil'
,
'CO00002'
}
PRIORITY_WORDS
=
{
'muw'
,
'MUW'
}
PRIORITY_WORDS
=
{
'muw'
,
'MUW'
,
'42'
,
42
}
TMP_DIR_NAME
=
'tmp'
# -------EDMS相关---------------------------------------------------------------------------------------------------
...
...
src/apps/doc/views.py
View file @
cf502df
...
...
@@ -81,11 +81,12 @@ application_information = {
"RATING"
:
fields
.
Int
(
required
=
True
),
"APPLICATION_ID"
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
100
)),
"APPLICATION_VERSION"
:
fields
.
Int
(
required
=
True
),
"INTERMEDIATE_DECISION"
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
100
)
),
"INTERMEDIATE_DECISION"
:
fields
.
Int
(
required
=
True
),
}
priority_doc_args
=
{
'APPLICATION_INFORMATION'
:
fields
.
Nested
(
application_information
,
required
=
True
)
}
...
...
@@ -185,7 +186,7 @@ class PriorityDocView(GenericView, DocHandler):
application_info
=
args
.
get
(
'APPLICATION_INFORMATION'
)
application_id
=
application_info
.
get
(
'APPLICATION_ID'
)
submit_datetime
=
application_info
.
get
(
'SUBMIT_DATETIME'
)
intermediate_decision
=
application_info
.
get
(
'INTERMEDIATE_DECISION'
)
intermediate_decision
=
str
(
application_info
.
get
(
'INTERMEDIATE_DECISION'
)
)
entity
=
application_info
.
get
(
'ENTITY'
)
if
submit_datetime
.
utcoffset
()
is
not
None
:
submit_datetime
=
timezone
.
make_naive
(
submit_datetime
,
timezone
.
get_current_timezone
())
...
...
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