Skip to content

Commit

Permalink
Update DO guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 committed Mar 26, 2021
1 parent a3d78f4 commit 11603b0
Show file tree
Hide file tree
Showing 5 changed files with 698 additions and 596 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,5 @@ def _fetch_entity_id(self, entity, filter_id):
return self._fetch_entity('{0}/{1}'.format(entity, filter_id))

def _fetch_entity(self, entity, filters=None):
filters = filters or {}
filters['only_products'] = True
do_dataset = self._user_do_dataset or self._external_do_dataset or self._default_do_dataset
return do_dataset.metadata(entity, filters)
6 changes: 3 additions & 3 deletions cartoframes/data/observatory/catalog/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Subscriptions:
"""
def __init__(self, credentials):
self._credentials = credentials
self._no_filters = {}
self._filters = {'only_products': True}
self._datasets = None
self._geographies = None

Expand All @@ -32,7 +32,7 @@ def datasets(self):
"""
if self._datasets is None:
from .dataset import Dataset
self._datasets = Dataset.get_all(self._no_filters, self._credentials)
self._datasets = Dataset.get_all(self._filters, self._credentials)
return self._datasets

@property
Expand All @@ -45,7 +45,7 @@ def geographies(self):
"""
if self._geographies is None:
from .geography import Geography
self._geographies = Geography.get_all(self._no_filters, self._credentials)
self._geographies = Geography.get_all(self._filters, self._credentials)
return self._geographies


Expand Down
Loading

0 comments on commit 11603b0

Please sign in to comment.