fixed references to prepared_epc

This commit is contained in:
Khalim Conn-Kowlessar 2026-03-11 18:57:50 +00:00
parent cbe162e64e
commit 2025fdf9f6

View file

@ -354,7 +354,7 @@ class EPCRecord:
if v != self._prepared_epc.get(k) and (not pd.isnull(v)) and (not pd.isnull(self._prepared_epc.get(k))):
self.landlord_differences[k] = v
self.prepared_epc.update(self.landlord_differences)
self._prepared_epc.update(self.landlord_differences)
@staticmethod
def _calculate_days_to(lodgement_date: Union[str, pd.Series]) -> Union[int, pd.Series]:
@ -1056,7 +1056,7 @@ class EPCRecord:
return difference_record
def _require_prepared_epc(self) -> None:
if self.prepared_epc is None:
if self._prepared_epc is None:
raise ValueError("EPCRecord does not contain prepared EPC data")
def __sub__(self, other):