diff --git a/tgtg_scanner/scanner.py b/tgtg_scanner/scanner.py index bb05196..29abb99 100644 --- a/tgtg_scanner/scanner.py +++ b/tgtg_scanner/scanner.py @@ -157,11 +157,11 @@ def convert_raw_delivery_item(self, raw_delivery_item: dict, mapping: dict) -> I # Update item data keys based on the mapping for key, value in item_data.items(): - new_key = mapping.get(key, key) - modified_item_data[new_key] = value + new_key = mapping.get(key, key) + modified_item_data[new_key] = value # Flattening the original data and integrating the modified item data - flattened_data = {**raw_delivery_item} + flattened_data = {**raw_delivery_item} flattened_data.update(modified_item_data) return Item(flattened_data, self.location, self.config.locale)