export agency

This commit is contained in:
Viktor Barzin 2025-05-18 17:41:50 +00:00
parent 9f3e466b23
commit 5192b1955c
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -29,6 +29,7 @@ class Listing:
"updated_days", "updated_days",
"status", "status",
"last_seen", "last_seen",
"agency",
] ]
@staticmethod @staticmethod
@ -287,6 +288,10 @@ class Listing:
status = self.detailobject["property"]["status"] status = self.detailobject["property"]["status"]
return status return status
@property
def agency(self) -> str:
return self.detailobject['property']["branch"]["brandName"]
def dict_nicely(self): def dict_nicely(self):
return { return {
"identifier": "identifier":
@ -319,4 +324,6 @@ class Listing:
self.status, self.status,
"last_seen": "last_seen":
self.last_seen, self.last_seen,
"agency":
self.agency,
} }