Skip to content

Commit

Permalink
Merge 16bd757 into d7ae089
Browse files Browse the repository at this point in the history
  • Loading branch information
FScaccheri committed Oct 10, 2019
2 parents d7ae089 + 16bd757 commit 02f7ee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pydatajson/indicators.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 02f7ee4

Please sign in to comment.