diff --git a/ckanext/odsh/helpers.py b/ckanext/odsh/helpers.py index 2ffbe79c8ebedd07c58e2cb712114f049f28b826..aaff41c8272def2c4802c1a617abd731c02560b6 100644 --- a/ckanext/odsh/helpers.py +++ b/ckanext/odsh/helpers.py @@ -514,10 +514,8 @@ def odsh_load_applicable_legislations(): with open(mapping_file_path) as mapping_json: MAPPING = json.loads( mapping_json.read(), object_pairs_hook=OrderedDict) - default = [{'value': 'Geltende Rechtsvorschrift wählen..', 'key': ''}] options = [{'key': key, 'value': MAPPING[key]} for key in MAPPING] - result = default+options except IOError as err: log.error( 'Could not load mapping file from {}' @@ -530,7 +528,7 @@ def odsh_load_applicable_legislations(): .format(mapping_file_path) ) raise - return result + return options def odsh_load_hvd_categories(): ''' @@ -546,10 +544,8 @@ def odsh_load_hvd_categories(): with open(mapping_file_path) as mapping_json: MAPPING = json.loads( mapping_json.read(), object_pairs_hook=OrderedDict) - default = [{'value': 'HVD Kategorie wählen..', 'key': ''}] options = [{'key': key, 'value': MAPPING[key]} for key in MAPPING] - result = default+options except IOError as err: log.error( 'Could not load mapping file from {}' @@ -562,7 +558,7 @@ def odsh_load_hvd_categories(): .format(mapping_file_path) ) raise - return result + return options def odsh_load_mdk_sample_dataset(): '''