Skip to content

Commit

Permalink
Merge dd3d743 into 0514d95
Browse files Browse the repository at this point in the history
  • Loading branch information
lrromero committed Jul 6, 2018
2 parents 0514d95 + dd3d743 commit 95532b7
Show file tree
Hide file tree
Showing 5 changed files with 45,813 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pydatajson/indicators.py
Expand Up @@ -128,12 +128,14 @@ def _generate_indicators(catalog, validator=None, only_numeric=False):
if not only_numeric:
if 'dataset' in catalog:
format_count = count_fields(get_distributions(catalog), 'format')
type_count = count_fields(get_distributions(catalog), 'type')
license_count = count_fields(get_datasets(catalog), 'license')
else:
format_count = license_count = {}
format_count = type_count = license_count = {}

result.update({
'distribuciones_formatos_cant': format_count,
'distribuciones_tipos_cant': type_count,
'datasets_licencias_cant': license_count,
})

Expand Down

0 comments on commit 95532b7

Please sign in to comment.