[chore] function types
parent
b59d55f6b5
commit
23876d5725
|
@ -626,7 +626,7 @@ class RealtorScraper(Scraper):
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def calculate_days_on_mls(result):
|
def calculate_days_on_mls(result: dict) -> Optional[int]:
|
||||||
list_date_str = result.get("list_date")
|
list_date_str = result.get("list_date")
|
||||||
list_date = datetime.strptime(list_date_str.split("T")[0], "%Y-%m-%d") if list_date_str else None
|
list_date = datetime.strptime(list_date_str.split("T")[0], "%Y-%m-%d") if list_date_str else None
|
||||||
last_sold_date_str = result.get("last_sold_date")
|
last_sold_date_str = result.get("last_sold_date")
|
||||||
|
|
Loading…
Reference in New Issue