Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Validata
validata-ui
Commits
f6558b1e
Commit
f6558b1e
authored
Oct 02, 2018
by
Pierre Dittgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error when headers are not found
parent
0d318c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
validata_ui_next/views.py
validata_ui_next/views.py
+1
-1
No files found.
validata_ui_next/views.py
View file @
f6558b1e
...
...
@@ -145,7 +145,7 @@ def create_validata_report(goodtables_report):
report
[
'table'
][
'row_count'
]
=
report
[
'table'
][
'row-count'
]
# Shortcut
report
[
'table'
][
'col_count'
]
=
len
(
report
[
'table'
]
[
'headers'
])
report
[
'table'
][
'col_count'
]
=
len
(
report
[
'table'
]
.
get
(
'headers'
,
[
])
)
# Add context to errors
errors
=
contextualize
(
report
[
'table'
][
'errors'
])
...
...
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