diff --git a/series_tiempo_ar_api/libs/indexing/report/indicators_generator.py b/series_tiempo_ar_api/libs/indexing/report/indicators_generator.py index e7050290..dc99efdf 100644 --- a/series_tiempo_ar_api/libs/indexing/report/indicators_generator.py +++ b/series_tiempo_ar_api/libs/indexing/report/indicators_generator.py @@ -109,6 +109,9 @@ def calculate_distribution_indicators(self, node, data_json): previous = not_indexable.filter(new=False, present=True).count() self.create(type=Indicator.DISTRIBUTION_NOT_INDEXABLE_PREVIOUS, value=previous, node=node) + error = Distribution.objects.filter(dataset__catalog=catalog, error=True).count() + self.create(type=Indicator.DISTRIBUTION_ERROR, value=error, node=node) + not_indexable_discontinued = not_indexable.filter(present=False).count() self.create(type=Indicator.DISTRIBUTION_NOT_INDEXABLE_DISCONTINUED, value=not_indexable_discontinued, @@ -152,6 +155,9 @@ def calculate_series_indicators(self, node, data_json): previous = not_indexable.filter(new=False, present=True).count() self.create(type=Indicator.FIELD_NOT_INDEXABLE_PREVIOUS, value=previous, node=node) + error = Field.objects.filter(distribution__dataset__catalog=catalog, error=True).count() + self.create(type=Indicator.FIELD_ERROR, value=error, node=node) + not_indexable_discontinued = not_indexable.filter(present=False).count() self.create(type=Indicator.FIELD_NOT_INDEXABLE_DISCONTINUED, value=not_indexable_discontinued,