add council tax band when exporting

This commit is contained in:
Viktor Barzin 2025-05-18 18:02:19 +00:00
parent 5192b1955c
commit 9067d45327
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -30,6 +30,7 @@ class Listing:
"status",
"last_seen",
"agency",
"council_tax_band",
]
@staticmethod
@ -292,6 +293,11 @@ class Listing:
def agency(self) -> str:
return self.detailobject['property']["branch"]["brandName"]
@property
def councilTaxBand(self) -> str:
return self.detailobject['property']["councilTaxInfo"]["content"][0][
"value"]
def dict_nicely(self):
return {
"identifier":
@ -326,4 +332,6 @@ class Listing:
self.last_seen,
"agency":
self.agency,
"council_tax_band":
self.councilTaxBand,
}