From bec45eaeb485813904e3a2d91e277d9d6804817e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Arroyo=20Torrens?= Date: Tue, 5 May 2020 19:11:40 +0200 Subject: [PATCH] Fix metadata entity format --- .../data/observatory/catalog/repository/repo_client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cartoframes/data/observatory/catalog/repository/repo_client.py b/cartoframes/data/observatory/catalog/repository/repo_client.py index a6ecb7926..6efb4b888 100644 --- a/cartoframes/data/observatory/catalog/repository/repo_client.py +++ b/cartoframes/data/observatory/catalog/repository/repo_client.py @@ -1,5 +1,3 @@ -import os - from carto.do_dataset import DODataset from .....auth import Credentials, defaults @@ -72,9 +70,9 @@ def _get_entity(self, entity, filters=None, use_slug=False): def _fetch_entity_id(self, entity, filter_id): if isinstance(filter_id, list): - return list(filter(None, [self._fetch_entity(os.path.join(entity, _id)) for _id in filter_id])) + return list(filter(None, [self._fetch_entity('{0}/{1}'.format(entity, _id)) for _id in filter_id])) else: - return self._fetch_entity(os.path.join(entity, filter_id)) + return self._fetch_entity('{0}/{1}'.format(entity, filter_id)) def _fetch_entity(self, entity, filters=None): if self._do_dataset: