Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexandre Bulté
Validata Core
Commits
cd753510
Commit
cd753510
authored
Oct 02, 2018
by
Christophe Benz
Browse files
Check if cell has a value
parent
6296e5b1
Changes
1
Show whitespace changes
Inline
Side-by-side
validata_validate/custom_checks/extra_or_missing_header.py
View file @
cd753510
...
...
@@ -37,7 +37,8 @@ class ExtraOrMissingHeader(object):
extra_headers
=
headers_set
-
field_names_set
if
extra_headers
:
for
cell
in
cells
:
if
cell
[
'value'
]
in
extra_headers
:
value
=
cell
.
get
(
'value'
)
if
value
is
not
None
and
value
in
extra_headers
:
errors
.
append
(
Error
(
code
=
'extra-header'
,
cell
=
cell
))
if
field_names_set
==
headers_set
and
field_names
!=
headers
:
...
...
Write
Preview
Supports
Markdown
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