fixed bug to reference standardised data when copying uprn instead of raw

This commit is contained in:
Khalim Conn-Kowlessar 2025-02-20 08:27:35 +00:00
parent 591ce54458
commit 4a6802a5a2

View file

@ -299,7 +299,7 @@ class AssetList:
# Finally, we handle the case where the landlord's property ID is actually the OS UPRN
if self.landlord_uprn == self.landlord_property_id:
self.raw_asset_list[self.STANDARD_UPRN] = self.raw_asset_list[self.landlord_uprn].copy()
self.standardised_asset_list[self.STANDARD_UPRN] = self.standardised_asset_list[self.landlord_uprn].copy()
# Update the reference to landlord UPRn
self.landlord_uprn = self.STANDARD_UPRN