Commit 6382ef0c authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

stats: Add error lines number

parent 7a3502e6
......@@ -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']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment