Skip to content
Snippets Groups Projects
Commit 5b160a26 authored by Thorge Petersen's avatar Thorge Petersen Committed by Jesper Zedlitz
Browse files

Workaround for long running collection relation item name to id conversion

parent f2aaa740
Branches
Tags
2 merge requests!33Resolve "Angabe zum Musterdatensatz beim DCAT-Harvesting übernehmen",!32Workaround for long running collection relation item name to id conversion
...@@ -175,11 +175,7 @@ class ODSHDCATdeProfile(DCATdeProfile): ...@@ -175,11 +175,7 @@ class ODSHDCATdeProfile(DCATdeProfile):
def _get_dataset_refs_belonging_to_collection(self, dataset_dict): def _get_dataset_refs_belonging_to_collection(self, dataset_dict):
dataset_names = helpers_collection.get_dataset_names(dataset_dict) dataset_names = helpers_collection.get_dataset_names(dataset_dict)
dataset_dicts = [model.Package.get( dataset_refs = [self._construct_refs(name) for name in dataset_names]
name).as_dict() for name in dataset_names]
dataset_ids = [dataset_dict.get('id')
for dataset_dict in dataset_dicts]
dataset_refs = [self._construct_refs(id) for id in dataset_ids]
return dataset_refs return dataset_refs
@staticmethod @staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment