diff --git a/nightingale/mapping_template/v09/__init__.py b/nightingale/mapping_template/v09/__init__.py index aa4371b..19928e8 100644 --- a/nightingale/mapping_template/v09/__init__.py +++ b/nightingale/mapping_template/v09/__init__.py @@ -93,7 +93,7 @@ def get_element_by_mapping(self, for_mapping): def read_data_elements_sheet(self, sheet): elements = {} for row in sheet.iter_rows(min_row=4, values_only=True): - for_mapping, data_source, table, data_element, publish, example, description, data_type, _, _, _, _ = row + for_mapping, data_source, table, data_element, publish, example, description, data_type, *_ = row if not data_element: continue elements[data_element] = { @@ -118,7 +118,7 @@ def read_schema_sheet(self): schema = {} for sheet in sheets: for row in sheet.iter_rows(min_row=2, values_only=True): - _, path, title, description, type, range, values, links, _, _ = row + _, path, title, description, type, range, values, links, *_ = row if not path: continue path = "/" + path