Skip to content

Commit

Permalink
Merge 23adf04 into 589e984
Browse files Browse the repository at this point in the history
  • Loading branch information
FScaccheri committed Oct 10, 2019
2 parents 589e984 + 23adf04 commit d67041e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pydatajson/indicators.py
Expand Up @@ -241,6 +241,9 @@ def _network_indicator_percentages(fields, network_indicators):
'datasets_con_datos_pct':
(network_indicators.get('datasets_con_datos_cant'),
network_indicators.get('datasets_sin_datos_cant')),
'distribuciones_download_url_ok_pct':
(network_indicators.get('distribuciones_download_url_ok_cant'),
network_indicators.get('distribuciones_download_url_error_cant')),
}

for indicator in percentages:
Expand Down
3 changes: 3 additions & 0 deletions tests/test_indicators.py
Expand Up @@ -299,6 +299,9 @@ def test_network_indicators(self):
},
'campos_optativos_pct': 0.3256,
'campos_recomendados_pct': 0.5072,
'distribuciones_download_url_ok_cant': 6,
'distribuciones_download_url_error_cant': 2,
'distribuciones_download_url_ok_pct': 0.75
}

for k, v in expected.items():
Expand Down
File renamed without changes.

0 comments on commit d67041e

Please sign in to comment.