[chore] function types

pull/34/head
Cullen Watson 2023-10-09 11:02:51 -05:00
parent b59d55f6b5
commit 23876d5725
1 changed files with 1 additions and 1 deletions

View File

@ -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")