mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixed references to prepared_epc
This commit is contained in:
parent
cbe162e64e
commit
2025fdf9f6
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue