Skip to content
Snippets Groups Projects
Commit d9ab0059 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Removed default value for multiple selects

parent ca85911e
No related branches found
No related tags found
1 merge request!52Added applicableLegislation and hvdCategory support
......@@ -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():
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment