Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
3aee492e
Commit
3aee492e
authored
Feb 04, 2020
by
Gladys Forte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{dev bugfix} strip fix
parent
7cf07cef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/helper/decorators.py
app/helper/decorators.py
+4
-3
No files found.
app/helper/decorators.py
View file @
3aee492e
...
@@ -303,7 +303,8 @@ def TemplateValidation(function):
...
@@ -303,7 +303,8 @@ def TemplateValidation(function):
'requested_to_department'
:
'Department'
}
'requested_to_department'
:
'Department'
}
for
key
in
required
.
keys
():
for
key
in
required
.
keys
():
if
not
key
in
template_header
or
template_header
[
key
]
.
strip
()
==
''
:
if
(
not
key
in
template_header
or
str
(
template_header
[
key
])
.
strip
()
==
''
):
return
error_message
(
'400'
,
required
[
key
]
+
' is required'
,
return
error_message
(
'400'
,
required
[
key
]
+
' is required'
,
'failed'
,
status
.
HTTP_400_BAD_REQUEST
)
'failed'
,
status
.
HTTP_400_BAD_REQUEST
)
...
@@ -370,7 +371,7 @@ def FormValidation(function):
...
@@ -370,7 +371,7 @@ def FormValidation(function):
'requested_to_priority'
:
'Priority Level'
}
'requested_to_priority'
:
'Priority Level'
}
for
key
in
required
.
keys
():
for
key
in
required
.
keys
():
if
not
key
in
form_header
or
form_header
[
key
]
.
strip
()
==
''
:
if
not
key
in
form_header
or
str
(
form_header
[
key
])
.
strip
()
==
''
:
return
error_message
(
'400'
,
required
[
key
]
+
' is required'
,
return
error_message
(
'400'
,
required
[
key
]
+
' is required'
,
'failed'
,
status
.
HTTP_400_BAD_REQUEST
)
'failed'
,
status
.
HTTP_400_BAD_REQUEST
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment