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",
|
"status",
|
||||||
"last_seen",
|
"last_seen",
|
||||||
"agency",
|
"agency",
|
||||||
|
"council_tax_band",
|
||||||
]
|
]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
@ -292,6 +293,11 @@ class Listing:
|
||||||
def agency(self) -> str:
|
def agency(self) -> str:
|
||||||
return self.detailobject['property']["branch"]["brandName"]
|
return self.detailobject['property']["branch"]["brandName"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def councilTaxBand(self) -> str:
|
||||||
|
return self.detailobject['property']["councilTaxInfo"]["content"][0][
|
||||||
|
"value"]
|
||||||
|
|
||||||
def dict_nicely(self):
|
def dict_nicely(self):
|
||||||
return {
|
return {
|
||||||
"identifier":
|
"identifier":
|
||||||
|
|
@ -326,4 +332,6 @@ class Listing:
|
||||||
self.last_seen,
|
self.last_seen,
|
||||||
"agency":
|
"agency":
|
||||||
self.agency,
|
self.agency,
|
||||||
|
"council_tax_band":
|
||||||
|
self.councilTaxBand,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue