From 0c1fb0360fa1473d4123e3a41c3a82f65d9a3512 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 16 Apr 2024 11:50:02 +0100 Subject: [PATCH] fixed patching of partial cwi description --- backend/app/plan/router.py | 2 ++ etl/customers/immo/pilot/asset_list.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app/plan/router.py b/backend/app/plan/router.py index e5a2aa79..7200d2ef 100644 --- a/backend/app/plan/router.py +++ b/backend/app/plan/router.py @@ -52,6 +52,8 @@ def patch_epc(patch, epc_records): """ for patch_variable, patch_value in patch.items(): + if patch_value == "": + continue if patch_variable in epc_records["original_epc"]: epc_records["original_epc"][patch_variable] = patch_value diff --git a/etl/customers/immo/pilot/asset_list.py b/etl/customers/immo/pilot/asset_list.py index 57fa5957..6329a2be 100644 --- a/etl/customers/immo/pilot/asset_list.py +++ b/etl/customers/immo/pilot/asset_list.py @@ -46,7 +46,7 @@ patches = [ }, { 'address': '53 Bromley', 'postcode': 'DY5 4PJ', - 'walls-description': 'Cavity wall, partial insulation', + 'walls-description': 'Cavity wall, partial insulation (assumed)', }, ]