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
6382ef0c
Commit
6382ef0c
authored
Nov 29, 2018
by
Pierre Dittgen
Browse files
stats: Add error lines number
parent
7a3502e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_core/__init__.py
View file @
6382ef0c
...
...
@@ -78,12 +78,13 @@ def compute_error_statistics(errors):
},
'value-errors': {
'count': 10,
'rows-count': 3,
'count-by-code': {
'type-or-format-error': 2,
'pattern-constraint': 7,
'french-siret-value': 1,
}
}
}
,
}
"""
...
...
@@ -109,6 +110,7 @@ def compute_error_statistics(errors):
},
'value-errors'
:
{
'count'
:
errors_nb_dict
[
'value'
],
'rows-count'
:
len
(
set
([
err
[
'row-number'
]
for
err
in
errors
if
err
[
'tag'
]
==
'value'
])),
'count-by-code'
:
errors_dist_dict
[
'value'
],
},
'count'
:
errors_nb_dict
[
'structure'
]
+
errors_nb_dict
[
'value'
]
...
...
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