diff --git a/ckanext/odsh/collection/helpers.py b/ckanext/odsh/collection/helpers.py index 2496d6eb472f9c86187913c3d97cf32f936032dc..e36b1a43e528d6808ba81bffbcd3d30c6029bafd 100644 --- a/ckanext/odsh/collection/helpers.py +++ b/ckanext/odsh/collection/helpers.py @@ -10,7 +10,6 @@ log = logging.getLogger(__name__) def get_collection(dataset_dict): - log.debug('start of get_collection') collection_id = get_collection_id(dataset_dict) if collection_id: return get_collection_info(collection_id, dataset_dict) @@ -19,6 +18,7 @@ def get_collection(dataset_dict): def get_collection_info(collection_id, dataset_dict=None): + log.debug('get_collection_info, collection_id: {}'.format(collection_id)) collection_dict = get_package_dict(collection_id) dataset_names = get_dataset_names(collection_dict) datasets_in_collection = get_datasets_from_solr(dataset_names) @@ -68,7 +68,6 @@ def get_datasets_from_solr(dataset_names): def gather_collection_info(collection_dict, datasets_in_collection, dataset_dict=None): url_from_id = lambda id: helpers.url_for(controller='package', action='read', id=id) - name_first_dataset = datasets_in_collection[0].get('name') url_first_dataset = url_from_id(name_first_dataset)