add council tax band when exporting
This commit is contained in:
parent
5192b1955c
commit
9067d45327
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue