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